public void ADOCanGetRoles() { var repo = new UsersRepositoryADO(); var roles = repo.GetAllRoles().ToList(); Assert.AreEqual(3, roles.Count); }
public void ADOCanGetUsersForReport() { var repo = new UsersRepositoryADO(); var users = repo.GetAllUsers().ToList(); Assert.AreEqual("Test", users[0].FirstName); Assert.AreEqual("Adminuser", users[0].LastName); Assert.AreEqual("*****@*****.**", users[0].Email); Assert.AreEqual("Admin", users[0].Role); }
public void ADOCanGetUserById() { var repo = new UsersRepositoryADO(); var user = repo.GetUserById("33333333-3333-3333-3333-333333333333"); Assert.AreEqual("33333333-3333-3333-3333-333333333333", user.UserId); Assert.AreEqual("Test", user.FirstName); Assert.AreEqual("Salesuser3", user.LastName); Assert.AreEqual("*****@*****.**", user.Email); Assert.AreEqual("Sales", user.Role); }