public DeviceController(IDeviceRepository repository, IUnitOfWork unitOfWork, IMapper mapper, IUsageRepository usage) : base(repository, unitOfWork, mapper) { _unitOfWork = unitOfWork; _repository = repository; _mapper = mapper; _usage = usage; }
public UnitOfWork() { _dbContext = new ApplicationDbContext(); Devices = new DeviceRepository(_dbContext); People = new PersonRepository(_dbContext); Usages = new UsageRepository(_dbContext); }
public UsageService(IUsageRepository usageRepository) { this.usageRepository = usageRepository; usageForCurrentCounterparty = new List <Usage>(); timer.Enabled = false; timer.Interval = 3000; timer.Elapsed += new ElapsedEventHandler(timer_Elapsed); }
public LeadService( ILeadRepository leadRepository , IERMSRepository ermsRepository , IContactRepository contactRepository , IAddressRepository addressRepository , IUsageRepository usageRepository , IProgramRepository programRepository , ICustomerRepository customerRepository , ICdcRepository cdcRepository , ILog loggingInstance, LoggingCommandHandlerDecorator <LogCommand> loghandler ) { _leadRepository = leadRepository ?? throw new ArgumentNullException($"lead repository instance is null"); _contactRepository = contactRepository ?? throw new ArgumentNullException($"ContactRepository repository instance is null"); _ermsRepository = ermsRepository ?? throw new ArgumentNullException($"ermsRepository repository instance is null"); _addressRepository = addressRepository ?? throw new ArgumentNullException($"AddressRepository repository instance is null"); _usageRepository = usageRepository ?? throw new ArgumentNullException($"UsageRepository repository instance is null"); _customerRepository = customerRepository ?? throw new ArgumentNullException($"customerRepository repository instance is null"); _cdcRepository = cdcRepository ?? throw new ArgumentNullException($"cdcRepository instance is null"); _programRepository = programRepository ?? throw new ArgumentNullException($"programRepository repository instance is null"); _loggingInstance = loggingInstance ?? throw new ArgumentNullException($"logging instance is null"); _logHandler = loghandler ?? throw new ArgumentNullException($"logging commandhandlerDecorator instance is null"); }
public AssetUsageTracker(IUsageRepository usageStore) { Guard.NotNull(usageStore, nameof(usageStore)); this.usageStore = usageStore; }
public HandleUserLoggedInEvent(IUsageRepository usageRepository) { _usageRepository = usageRepository; }
public HomeController(ITipRepository tipRepository, IUsageRepository usageRepository) { _tipRepository = tipRepository; _usageRepository = usageRepository; }
public UsageService(IUsageRepository usageRepository) { _usageRepository = usageRepository; }
public HomeController(ITipRepository tipRepository, IUsageRepository usageRepository) { _tipRepository = tipRepository; _usageRepository = usageRepository; }
public UsageController(IUsageRepository usage, IMapper mapper) { _repository = usage; _mapper = mapper; }