public void TestSetup()
 {
     _billRepositoryMock    = _mock.Mock <IBillRepository>();
     _billUnitOfWorkMock    = _mock.Mock <IBillUnitOfWork>();
     _readingRepositoryMock = _mock.Mock <IReadingRepository>();
     _readingService        = _mock.Create <ReadingService>();
 }
Example #2
0
 public BillUpdateModel(IBillService billService, ITenantService tenantService, IReadingService readingService, ILogger <BillUpdateModel> logger)
 {
     _billService    = billService;
     _tenantService  = tenantService;
     _readingService = readingService;
     _logger         = logger;
 }
 public ReadingQueryHandler(
     IReadingService readingService,
     IDistributedCache distributedCache)
 {
     this._readingService   = readingService;
     this._distributedCache = distributedCache;
 }
Example #4
0
 public BillUpdateModel()
 {
     _billService    = Startup.AutofacContainer.Resolve <IBillService>();
     _tenantService  = Startup.AutofacContainer.Resolve <ITenantService>();
     _readingService = Startup.AutofacContainer.Resolve <IReadingService>();
     _logger         = Startup.AutofacContainer.Resolve <ILogger <BillUpdateModel> >();
 }
Example #5
0
 public ReadingController(IReadingService readingService,
                          ITenantService tenantService, IBillService billService, ILogger <ReadingController> logger)
 {
     _billService    = billService;
     _tenantService  = tenantService;
     _readingService = readingService;
     _logger         = logger;
 }
Example #6
0
 public Service()
 {
     Logger.Log.Info("Incoming request...");
     _context            = new Context();
     _readService        = new ReadService(_context);
     _readerService      = new ReaderService(_context);
     _readingService     = new ReadingService(_context);
     _raceService        = new RaceService(_context);
     _lastSeenLogService = new LastSeenLogService(_context);
 }
Example #7
0
        public LocalReadingsViewModel()
        {
            _context        = new Context();
            _raceService    = new RaceService(_context);
            _readerService  = new ReaderService(_context);
            _readingService = new ReadingService(_context);
            _readService    = new ReadService(_context);

            Init();
        }
 public ReadingController(IReadingService readingService)
 {
     _readingService = readingService;
 }
Example #9
0
 public ReadingViewModel(IReadingService readingService, ITenantService tenantService)
 {
     _readingService = readingService;
     _tenantService  = tenantService;
 }
 public BillController(IBillService billService, ITenantService tenantService, IReadingService readingService)
 {
     _billService    = billService;
     _tenantService  = tenantService;
     _readingService = readingService;
 }
 public ReadingUpdateModel(IReadingService readingService, ITenantService tenantService, ILogger <ReadingUpdateModel> logger)
 {
     _readingService = readingService;
     _tenantService  = tenantService;
     _logger         = logger;
 }
Example #12
0
 public MeterReadingsController(ILogger <MeterReadingsController> logger, IReadingService readingService)
 {
     _logger         = logger;
     _readingService = readingService;
 }
Example #13
0
 public ReadingApiController(IReadingService readingService)
 {
     this._readingService = readingService;
 }
 public ReadingController(IReadingService services, IMonitoringConverter converter)
 {
     _services  = services;
     _converter = converter;
 }
Example #15
0
 public TenantViewModel()
 {
     _tenantService  = Startup.AutofacContainer.Resolve <ITenantService>();
     _readingService = Startup.AutofacContainer.Resolve <IReadingService>();
 }
Example #16
0
 public TenantViewModel(ITenantService tenantService, IReadingService readingService)
 {
     _tenantService  = tenantService;
     _readingService = readingService;
 }
 public TenantController(ITenantService tenantService, IDocumentService documentService, IReadingService readingService)
 {
     _tenantService   = tenantService;
     _documentService = documentService;
     _readingService  = readingService;
 }