public void UserRepositoryMock_AddUser() { UserRepositoryMock urm = new UserRepositoryMock(); User user = new User() { Username = "******", UserId = 1000 }; urm.AddUser(user); var a = urm.GetUserById(1000); Assert.IsNotNull(a); }