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); }
public void DemoUserRepository_GetUsers_Should_Return_Values() { rep = new UserDAO(); List <User> users = rep.GetUsers().ToList(); Assert.IsNotNull(users); Assert.AreNotEqual(0, users.Count); }
public UserBL() { this.DB = new UserDAO(); }