public void Check_If_SqlUserRepository_Returns_Correct_Role_Against_A_Valid_Db_User() { // Arrange IWebUserRepository _Repository = new SqlWebUserRepository(); //Act var studentUserInfo = _Repository.GetUserInfo(TestConstants.DbStudentUserId); var adminUserInfo = _Repository.GetUserInfo(TestConstants.DbAdminUserId); //Assert Assert.AreEqual("Student", studentUserInfo.Role); Assert.AreEqual("Admin", adminUserInfo.Role); }
public void Check_If_SqlUserRepository_Returns_Role_Rights_Against_A_Valid_Db_User() { // Arrange IWebUserRepository _Repository = new SqlWebUserRepository(); //Act var userInfo = _Repository.GetUserInfo(TestConstants.DbStudentUserId); //Assert Assert.IsNotNull(userInfo.VisibleReports); }
public void Check_WebUser_information_Is_Successfully_get_From_SQL_Repository_For_A_Valid_Db_Student() { // Arrange IWebUserRepository _Repository = new SqlWebUserRepository(); //Act var userInfo = _Repository.GetUserInfo(DbStudentNo); //Assert Assert.IsNotNull(userInfo); }