private async Task <UserProfile> StoreInUserTable(IBotContext context) { UserTable userTable = new UserTable(); return(await userTable.AddUser( context.Activity.ChannelId, context.Activity.From.Id, context.UserData.GetValue <string>(NameKey), context.UserData.GetValue <string>(PhoneKey), context.UserData.GetValue <string>(EmailKey))); }
private async Task <UserProfile> StoreInUserTable(IBotContext context) { UserTable userTable = new UserTable(); return(await userTable.AddUser( context.Activity.ChannelId, context.Activity.From.Id, string.Empty, //name _isSms?context.Activity.From.Id : string.Empty, context.UserData.GetValue <string>(AliasKey))); }
public void AddUsersToList_Firefox() { bool userExists = false; WebDriver.OpenBrowser("Firefox"); WebDriver.NavigateToUrl("http://www.way2automation.com/angularjs-protractor/webtables/"); Assert.IsTrue(UserTable.ValidateUserTableExist(), "User table not found"); UserTable.AddUser(userTestData); userExists = UserTable.CheckIfUserIsAddedOnTheList(userTestData); Assert.IsTrue(userExists, "User is not on the list"); if (userExists) { userRepository.AddUser(userTestData); } }