public void can_create_user_record() { var userData = new UserDataRepository(); var repo = new UserAddressRepo(userData); var user = new User {Email = "*****@*****.**", FirstName = "Test", LastName = "McTest"}; var createdUser = repo.CreateUser(user); Assert.IsNotNull(createdUser); Assert.IsNotNull(createdUser.Id); }
public void create_user_for_test() { var userData = new UserDataRepository(); _userRepo = new UserAddressRepo(userData); _user = _userRepo.CreateUser(new User { Email = "*****@*****.**", FirstName = "Test", LastName = "McTest" }); }
public Fixture_AddressBookService() { svcRepo = new UserAddressRepo(new UserDataRepository()); addrRepo = new AddressRepo(new AddressDataRepository(), new TagDataRepository()); }