Пример #1
0
        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);
        }
Пример #2
0
 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);
 }