public void perziuretiS() { foreach (var item in UR.Retrieve()) { Console.WriteLine(item.UserName); } }
public void ReturnRightListsCount() { // Arrange ReportGenerator RG = new ReportGenerator(UR.Retrieve()); List <ReportItem> actual = RG.Generate(); // Act List <User> expected = UR.Retrieve(); // Assert Assert.AreEqual(expected.Count, actual.Count); }
public void TestingUserDelete() { // Arrange UserRepoository userRepoository = new UserRepoository(); User expected = null; // Act userRepoository.DeleteUser(3); User actual = userRepoository.Retrieve(3); // Assert Assert.AreEqual(expected, actual); }
public void TestingUserListRetrieve() { // Arrange UserRepoository userRepoository = new UserRepoository(); int expected = 5; // Act List <User> userListRetrieved = userRepoository.Retrieve(); int actual = userListRetrieved.Count; // Assert Assert.AreEqual(expected, actual); }
public void TestingUserRetrieve() { // Arrange UserRepoository userRepoository = new UserRepoository(); string expected = "Katia"; // Act User user = userRepoository.Retrieve(2); string actual = user.UserName; // Assert Assert.AreEqual(expected, actual); }
public void TestingUserAddWithMatchUserId() { // Arrange UserRepoository userRepoository = new UserRepoository(); string expected = "Vasia"; // Act userRepoository.AddUser(1, "Gena", 1); User user = userRepoository.Retrieve(1); string actual = user.UserName; // Assert Assert.AreEqual(expected, actual); }