public HomeController(
     IServiceTicketRepository serviceTicketRepository,
     IScheduleItemRepository scheduleItemRepository)
 {
     this.serviceTicketRepository = serviceTicketRepository;
     this.scheduleItemRepository  = scheduleItemRepository;
 }
Ejemplo n.º 2
0
 public ScheduleItemService(IScheduleItemRepository repository, ITagService tagService, ICommentService commentService, IModulesLoaded modules, OxiteContext context)
 {
     this.repository     = repository;
     this.tagService     = tagService;
     this.commentService = commentService;
     cache        = modules.GetModules <IOxiteCacheModule>().Reverse().First();
     this.context = context;
 }
Ejemplo n.º 3
0
 public HomeController(
     IServiceTicketRepository serviceTickets,
     IMessageRepository messageRepository,
     IAlertRepository alertRepository,
     IScheduleItemRepository scheduleItemRepository)
 {
     this.serviceTickets         = serviceTickets;
     this.messageRepository      = messageRepository;
     this.alertRepository        = alertRepository;
     this.scheduleItemRepository = scheduleItemRepository;
 }
Ejemplo n.º 4
0
 public HomeController(
                       IServiceTicketRepository serviceTickets,
                       IMessageRepository messageRepository,
                       IAlertRepository alertRepository,
                       IScheduleItemRepository scheduleItemRepository)
 {
     this.serviceTickets = serviceTickets;
     this.messageRepository = messageRepository;
     this.alertRepository = alertRepository;
     this.scheduleItemRepository = scheduleItemRepository;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 6
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 ConferencesCommentService(IConferencesCommentRepository conferencesCommentRepository, ICommentRepository commentRepository, IScheduleItemRepository scheduleItemRepository, IMessageOutboundRepository messageOutboundRepository, ILanguageRepository languageRepository, ILocalizationRepository localizationRepository, AbsolutePathHelper absolutePathHelper, IValidationService validator, IPluginEngine pluginEngine, IModulesLoaded modules, OxiteContext context)
 {
     this.conferencesCommentRepository = conferencesCommentRepository;
     this.commentRepository            = commentRepository;
     this.scheduleItemRepository       = scheduleItemRepository;
     this.messageOutboundRepository    = messageOutboundRepository;
     this.languageRepository           = languageRepository;
     this.localizationRepository       = localizationRepository;
     this.absolutePathHelper           = absolutePathHelper;
     this.validator    = validator;
     this.pluginEngine = pluginEngine;
     this.cache        = modules.GetModules <IOxiteCacheModule>().Reverse().First();
     this.context      = context;
 }
        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
            );
        }
Ejemplo n.º 9
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
                );
        }
Ejemplo n.º 10
0
        private void RegisterContext()
        {
            if (Context == null)
            {
                Context = RepositoryHelper.GetDataContext();
            }

            scheduleRepository = RepositoryFactory.GetRepository <IScheduleRepository>(
                KeyHelper.GetKey <IScheduleRepository>(), Context);
            blackoutDateRepository = RepositoryFactory.GetRepository <IBlackoutDateRepository>(
                KeyHelper.GetKey <IBlackoutDateRepository>(), Context);
            scheduleItemRepository = RepositoryFactory.GetRepository <IScheduleItemRepository>(
                KeyHelper.GetKey <IScheduleItemRepository>(), Context);
            baptizerRepository = RepositoryFactory.GetRepository <IBaptizerRepository>(
                KeyHelper.GetKey <IBaptizerRepository>(), Context);
        }
        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
            );
        }
Ejemplo n.º 12
0
 public HomeController(IServiceTicketRepository serviceTicketRepository, IScheduleItemRepository scheduleItemRepository)
 {
     this.serviceTicketRepository = serviceTicketRepository;
     this.scheduleItemRepository = scheduleItemRepository;
 }
 public ScheduleItemsController(IScheduleItemRepository repo)
 {
     repository = repo;
 }
 public ScheduleItemLogic(ILoggerManager logger, IScheduleItemRepository scheduleItemRepository, IMapper mapper)
 {
     _logger     = logger;
     _repository = scheduleItemRepository;
     _mapper     = mapper;
 }