public HomeController(
     IServiceTicketRepository serviceTicketRepository,
     IScheduleItemRepository scheduleItemRepository)
 {
     this.serviceTicketRepository = serviceTicketRepository;
     this.scheduleItemRepository  = scheduleItemRepository;
 }
예제 #2
0
 public HomeController(
     IServiceTicketRepository serviceTickets,
     IMessageRepository messageRepository,
     IAlertRepository alertRepository,
     IScheduleItemRepository scheduleItemRepository)
 {
     this.serviceTickets         = serviceTickets;
     this.messageRepository      = messageRepository;
     this.alertRepository        = alertRepository;
     this.scheduleItemRepository = scheduleItemRepository;
 }
예제 #3
0
 public HomeController(
                       IServiceTicketRepository serviceTickets,
                       IMessageRepository messageRepository,
                       IAlertRepository alertRepository,
                       IScheduleItemRepository scheduleItemRepository)
 {
     this.serviceTickets = serviceTickets;
     this.messageRepository = messageRepository;
     this.alertRepository = alertRepository;
     this.scheduleItemRepository = scheduleItemRepository;
 }
예제 #4
0
 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;
 }
예제 #5
0
 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
            );
        }
예제 #7
0
        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
            );
        }
예제 #9
0
 public HomeController(IServiceTicketRepository serviceTicketRepository, IScheduleItemRepository scheduleItemRepository)
 {
     this.serviceTicketRepository = serviceTicketRepository;
     this.scheduleItemRepository = scheduleItemRepository;
 }
예제 #10
0
 public ReportsController(IEmployeeRepository employeeRepository, IServiceTicketRepository serviceTicketRepository)
 {
     this.employeeRepository = employeeRepository;
     this.serviceTicketRepository = serviceTicketRepository;
 }
예제 #11
0
 public ReportsController(IEmployeeRepository employeeRepository, IServiceTicketRepository serviceTicketRepository)
 {
     this.employeeRepository      = employeeRepository;
     this.serviceTicketRepository = serviceTicketRepository;
 }