Exemplo n.º 1
0
        public static TestFlow AssertNewUserInsertData(this TestFlow testFlow)
        {
            var          gender = Gender.NOT_DEFINE.AsString(EnumFormat.Description);
            const string age    = "25";
            const string work   = "student";

            return(testFlow.AssertReplyContain(BotStrings.We_need_some_information)

                   .AssertReplyContain(BotStrings.Select_your_gender)
                   .Send(gender)

                   .AssertReplyContain(BotStrings.Enter_your_age)
                   .Send(age)

                   .AssertReplyContain(BotStrings.Select_your_work)
                   .Send(work)

                   .AssertReplyContain(string.Format(BotStrings.Saving_info_of_user, "user1", "test"))
                   .AssertReplyContainAll(new[] { BotStrings.Saving_your_data, gender, age, work }));
        }