public void DemoUserRepository_GetUser_Should_Return_Null_On_Invalid_User() { rep = new UserDAO(); User user = rep.GetUser("hallo"); Assert.IsNull(user); }
public void DemoUserRepository_GetUser_Should_Return_Data_On_Valid_User() { rep = new UserDAO(); User user = rep.GetUser("Robert"); Assert.IsNotNull(user); Assert.AreEqual("Robert", user.Login); }