public void Setup() { _repairGatewayMock = new Mock <IRepairsGateway>(); _appointmentsGatewayMock = new Mock <IAppointmentsGateway>(); _jobStatusUpdateUseCase = new Mock <IUpdateJobStatusUseCase>(); _classUnderTest = new CreateAppointmentUseCase(_appointmentsGatewayMock.Object, _repairGatewayMock.Object, _jobStatusUpdateUseCase.Object); }
public AppointmentsController(IListAppointmentsUseCase listAppointmentsUseCase, ICreateAppointmentUseCase createAppointmentUseCase) { _listAppointmentsUseCase = listAppointmentsUseCase; _createAppointmentUseCase = createAppointmentUseCase; }