public HomeController( IServiceTicketRepository serviceTicketRepository, IScheduleItemRepository scheduleItemRepository) { this.serviceTicketRepository = serviceTicketRepository; this.scheduleItemRepository = scheduleItemRepository; }
public HomeController( IServiceTicketRepository serviceTickets, IMessageRepository messageRepository, IAlertRepository alertRepository, IScheduleItemRepository scheduleItemRepository) { this.serviceTickets = serviceTickets; this.messageRepository = messageRepository; this.alertRepository = alertRepository; this.scheduleItemRepository = scheduleItemRepository; }
public ServiceTicketsController( ICustomerRepository customerRepository, IEmployeeRepository employeeRepository, IServiceTicketRepository serviceTicketRepository, IServiceLogEntryRepository serviceLogEntryRepository, IScheduleItemRepository scheduleItemRepository) { this.customerRepository = customerRepository; this.employeeRepository = employeeRepository; this.serviceTicketRepository = serviceTicketRepository; this.serviceLogEntryRepository = serviceLogEntryRepository; this.scheduleItemRepository = scheduleItemRepository; }
public void SetUp() { serviceTicketRepo = Substitute.For<IServiceTicketRepository>(); messageRepo = Substitute.For<IMessageRepository>(); alertRepo = Substitute.For<IAlertRepository>(); scheduleItemRepo = Substitute.For<IScheduleItemRepository>(); controller = new HomeController( serviceTicketRepo, messageRepo, alertRepo, scheduleItemRepo ); }
public ServiceTicketsControllerTest() { mockCustomerRepo = Substitute.For <ICustomerRepository>(); mockEmployeeRepo = Substitute.For <IEmployeeRepository>(); mockServiceTicketRepo = Substitute.For <IServiceTicketRepository>(); mockLogEntryRepo = Substitute.For <IServiceLogEntryRepository>(); mockScheduleItemRepo = Substitute.For <IScheduleItemRepository>(); controller = new ServiceTicketsController( mockCustomerRepo, mockEmployeeRepo, mockServiceTicketRepo, mockLogEntryRepo, mockScheduleItemRepo ); }
public void SetUp() { mockCustomerRepo = Substitute.For<ICustomerRepository>(); mockEmployeeRepo = Substitute.For<IEmployeeRepository>(); mockServiceTicketRepo = Substitute.For<IServiceTicketRepository>(); mockLogEntryRepo = Substitute.For<IServiceLogEntryRepository>(); mockScheduleItemRepo = Substitute.For<IScheduleItemRepository>(); controller = new ServiceTicketsController( mockCustomerRepo, mockEmployeeRepo, mockServiceTicketRepo, mockLogEntryRepo, mockScheduleItemRepo ); }
public HomeController(IServiceTicketRepository serviceTicketRepository, IScheduleItemRepository scheduleItemRepository) { this.serviceTicketRepository = serviceTicketRepository; this.scheduleItemRepository = scheduleItemRepository; }
public ReportsController(IEmployeeRepository employeeRepository, IServiceTicketRepository serviceTicketRepository) { this.employeeRepository = employeeRepository; this.serviceTicketRepository = serviceTicketRepository; }