public BookingService( IBookingRepositoryService bookingRespositoryService, IPatientRespository patientRepository, IEquipmentApi equipmentApi, EmailSetting emailSetting) { _bookingRepositoryService = bookingRespositoryService; _patientRepository = patientRepository; _equipmentApi = equipmentApi; _emailSetting = emailSetting; }
public BookingCreateTests(ITestOutputHelper output) { // setting up to log response message and any errors _output = output; // using EntityFrameworkCoreInMemory to mock datacontext object _context = DBContext.DataSourceMemoryContext("db"); // getting equipment and email setting configurations _equipmentSetting = FileHelper.GetEquipmentSettingConfiguration(@"appsettings.json"); _emailSetting = FileHelper.GetEmailSettingConfiguration(@"appsettings.json"); _bookingRepositoryService = new BookingRepositoryService(_context); _equipmentApi = new EquipmentApi(_equipmentSetting); _patientRepository = new PatientRepositoryService(_context); }
public BookingsController(IBookingRepositoryService bookingRepositoryService) { repository = bookingRepositoryService; }