Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Proactive and Feedback Util UT Tests in EnterpriseVA #3471

Conversation

sidmore
Copy link
Contributor

@sidmore sidmore commented Jun 16, 2020

Purpose

What is the context of this pull request? Why is it being done?
Add UT for:
a. Proactive notifications
b. Feedback Utils

Changes

Are there any changes that need to be called out as significant or particularly difficult to grasp? (Include illustrative screenshots for context if applicable.)

Tests

Is this covered by existing tests or new ones? If no, why not?

Feature Plan

Are there any remaining steps or dependencies before this issue can be fully resolved? If so, describe and link to any relevant pull requests or issues.

Checklist

General

  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the appropriate tests
  • I have updated related documentation

@sidmore sidmore changed the title Proactive and Feedback Util Tests in EnterpriseVA Proactive and Feedback Util UT Tests in EnterpriseVA Jun 16, 2020
@auto-assign auto-assign bot requested a review from darrenj June 16, 2020 15:46
var turnContext = new TurnContext(adapter, eventActivity);

var testFeedback = FeedbackUtil.CreateFeedbackActivity(turnContext);
Assert.AreEqual("Was this helpful ? (1) 👍, (2) 👎, or(3) Dismiss", testFeedback.Text);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make a const string that is used by the createFeedbackActivity function and this test?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing for line 70 comment string

var turnContext = new TurnContext(adapter, eventActivity);

var testFeedback = FeedbackUtil.CreateFeedbackActivity(turnContext);
Assert.AreEqual("Was this helpful ? (1) 👍, (2) 👎, or(3) Dismiss", testFeedback.Text);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing for line 70 comment string

@sidmore sidmore merged commit 5e36e64 into user/sidmore/EnterpriseVATemplateUpdate Jun 22, 2020
@delete-merged-branch delete-merged-branch bot deleted the user/sidmore/EnterpriseVAAdditionalTests branch June 22, 2020 17:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants