public void DeleteAddressPersistedTest() { using (var context = new ContextDb()) { var entity = context.Addresses.Find(_address.Id); context.Addresses.Remove(entity); } }
public void DeleteInterviewPersistedTest() { using (var context = new ContextDb()) { var entity = context.Interviews.Find(_interview.Id); context.Interviews.Remove(entity); } }
public void DeleteCandidatePersistedTest() { using (var context = new ContextDb()) { var entity = context.Candidates.Find(_candidate.Id); context.Candidates.Remove(entity); } }
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 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 CandidateRepository(); _candidate = ObjectMother.GetCandidate(); using (var context = new ContextDb()) { context.Candidates.Add(_candidate); context.SaveChanges(); } }