public void Initialize() { _testContext = MockRepository.GenerateStub <IAppointmentDataContext>(); _testContext.Appointments = new List <Appointment>(); _testContext.AppointmentDetails = new List <AppointmentDetail>(); _appointmentProviderStrategy = new AppointmentRepositoryContext(_testContext); }
public AppointmentsController(IAppointmentRepositoryContext appointmentProviderRepositoryContext) { _appointmentRepositoryContext = appointmentProviderRepositoryContext; _provider = _appointmentRepositoryContext.GetAppointmentRepository(); }