Example #1
0
 public BookingService(
     IBookingRepositoryService bookingRespositoryService,
     IPatientRespository patientRepository,
     IEquipmentApi equipmentApi,
     EmailSetting emailSetting)
 {
     _bookingRepositoryService = bookingRespositoryService;
     _patientRepository        = patientRepository;
     _equipmentApi             = equipmentApi;
     _emailSetting             = emailSetting;
 }
Example #2
0
        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);
        }
Example #3
0
 public BookingsController(IBookingRepositoryService bookingRepositoryService)
 {
     repository = bookingRepositoryService;
 }