Exemple #1
0
 public void DeleteUser()
 {
     var userRepository = new UsersRepository();
     var userDelete = new User
     {
         Id = 7
     };
     userRepository.Delete(userDelete);
 }
Exemple #2
0
 public void ShouldCreateUser()
 {
     //arrange
     var userRepository = new UsersRepository();
     var user = new User
     {
         Email = "*****@*****.**",
         FullName = "test",
         Twitter = "test.tw",
         Facebook = "test.fb"
     };
     //act
     userRepository.Create(user);
     //asserts
     //var resultUser = userRepository.Get(user.Id);
     //Assert.AreEqual(user.Email, resultUser.Email);
 }