public PersonGreeterTests() { _personRepo = new Mock_PersonRepository(); _user = new TestUserContext(); _greeterService = new PersonGreeterService(_personRepo, _user); }
public BirthdayServiceTests() { _database = new TestDatabaseContext(); _user = new TestUserContext(); _personGreeterService = new Mock_PersonService(); _personRepo = new Mock_PersonRepository(); _birthdayService = new BirthdayService(_personRepo, _user, _personGreeterService); }
public PersonRetreivalServiceTests() { _personRepo = new Mock_PersonRepository(); _api = new TestWebApiContext(); // add some seed data to the api _api.SeedData(nUnit.TestData.PersonTestData.ValidPersonsList); _personRetreivalService = new PersonRetreivalService(_personRepo, _api); }