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); }
public void pridetiNaujaUseri(int userId, string userName, int rightsId) { Console.WriteLine("Iveskite userio ID, varda ir teise nuo 0 iki 2"); UR.AddUser(userId, userName, rightsId); }