public void Success_AssignSessionKey() { //Arrange string result; CustomUser user; //Act user = new CustomUser { Username = "******", Password = "******", Email = "ClassLibrary1 - Test user database - AssignSessionKey", IsActive = true, Wallet = 500, LoggedIn = true }; result = db_user.CreateUser(user); usernames.Add(user.Username); if (result.Equals("Success")) { result = db_user.AssignSessionKey(user); } //Assert Assert.AreEqual("Success", result); }
/// <summary> /// assign a session key to a user. /// </summary> /// <param name="user"></param> public void AssignSessionKey(CustomUser user) { db_user.AssignSessionKey(user); }