public void Setup() { Database.SetInitializer(new DropCreateDatabaseAlways<ContextDb>()); _repository = new InterviewRepository(); _interview = ObjectMother.GetInterview(); using (var context = new ContextDb()) { context.Interviews.Add(_interview); context.SaveChanges(); } }
public void Setup() { Database.SetInitializer(new DropCreateDatabaseAlways<ContextDb>()); _repository = new AddressRepository(); _address = ObjectMother.GetAddress(); using (var context = new ContextDb()) { context.Addresses.Add(_address); context.SaveChanges(); } }
public void Setup() { Database.SetInitializer(new DropCreateDatabaseAlways<ContextDb>()); _repository = new CandidateRepository(); _candidate = ObjectMother.GetCandidate(); using (var context = new ContextDb()) { context.Candidates.Add(_candidate); context.SaveChanges(); } }