Ejemplo n.º 1
0
        public async Task GetNameListStringTest_OneOption()
        {
            // Mock data
            mockEmailStateAccessor.MockEmailSkillState            = new EmailSkillState();
            mockEmailStateAccessor.MockEmailSkillState.Recipients = GetRecipients(1);
            mockEmailStateAccessor.SetMockBehavior();
            EmailStateAccessor = mockEmailStateAccessor.GetMock().Object;

            var nameList = await GetNameListStringAsync(null);

            Assert.AreEqual(nameList, "test0");
        }
Ejemplo n.º 2
0
        public StepHelperTests()
            : base(DialogId)
        {
            Services = new MockSkillConfiguration();

            this.mockEmailStateAccessor = new MockEmailStateAccessor();
            EmailStateAccessor          = mockEmailStateAccessor.GetMock().Object;

            this.mockDialogStateAccessor = new MockDialogStateAccessor();
            DialogStateAccessor          = mockDialogStateAccessor.GetMock().Object;

            ServiceManager = new MockServiceManager();
        }
Ejemplo n.º 3
0
        public StepHelperTests()
            : base(DialogId)
        {
            Services = new BotServices();

            mockEmailStateAccessor = new MockEmailStateAccessor();
            EmailStateAccessor     = mockEmailStateAccessor.GetMock().Object;

            mockDialogStateAccessor = new MockDialogStateAccessor();
            DialogStateAccessor     = mockDialogStateAccessor.GetMock().Object;

            ServiceManager = new MockServiceManager();
        }