Пример #1
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;
 }
Пример #2
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;
 }
Пример #3
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
            );
        }