public LocalKeyManager(int? currentHeadQuarterId, IKeyRepository keyRepository, IMiscRepository miscRepository, IReturnKeyRepository returnKeyRepository, KeyTypeConfigurationRepository keyTypeRepository, ISubsidiaryRepository subsRepository) { CurrentHeadQuarterId = currentHeadQuarterId; if (currentHeadQuarterId == null) CurrentHeadQuarter = null; else { HeadQuarterRepository hqRepository = new HeadQuarterRepository(); CurrentHeadQuarter = hqRepository.GetHeadQuarter(currentHeadQuarterId.Value); } if (keyRepository == null) this.keyRepository = new KeyRepository(); else this.keyRepository = keyRepository; if (miscRepository == null) this.miscRepository = new MiscRepository(); else this.miscRepository = miscRepository; if (returnKeyRepository == null) this.returnKeyRepository = new ReturnKeyRepository(); else this.returnKeyRepository = returnKeyRepository; if (keyTypeRepository == null) this.keyTypeRepository = new KeyTypeConfigurationRepository(); else this.keyTypeRepository = keyTypeRepository; if (subsRepository == null) this.subsRepository = new SubsidiaryRepository(); else this.subsRepository = subsRepository; }
public SunGrowProvider(IGraphRepository graph, ISunGrowRepository sungrow, IMiscRepository misc) { _graph = graph; _sungrow = sungrow; _misc = misc; apiresponses = new List <APISuccessResponses>(); mapper = new EnergyGraphMapper(); }
public GoodWeeProvider(IGraphRepository graph, IGoodWeeRepository goodWee, IMiscRepository misc) { _graph = graph; _goodWee = goodWee; _misc = misc; apiresponses = new List <APISuccessResponses>(); mapper = new EnergyGraphMapper(); }
public DailyJob(IVendorRepository vendors, IGraphRepository graph, ISunGrowRepository sunGrow, IGrowWattRepository growWatt, IGoodWeeRepository goodWee, IMiscRepository misc) { _vendors = vendors; _graph = graph; _sunGrow = sunGrow; _growWatt = growWatt; _goodWee = goodWee; _misc = misc; }
public GrowWattProvider(IGraphRepository graph, IGrowWattRepository growWatt, IMiscRepository misc) { _graph = graph; _growWatt = growWatt; _misc = misc; helper = new Helper(); apiresponses = new List <APISuccessResponses>(); deviceInformation = new List <GrowWattDevice>(); faultsInformation = new List <GrowWattDeviceFaults>(); mapper = new EnergyGraphMapper(); }
public HomeController(IUserRepository userRepo, IMiscRepository miscRepo) { this.userRepo = userRepo; this.miscRepo = miscRepo; }
public MiscTest() { this.repository = Client.Misc; }
public MiscFacade(IMiscRepository miscRepositoryDAC) { _miscRepositoryDAC = miscRepositoryDAC ?? throw new ArgumentNullException(nameof(miscRepositoryDAC)); }
public MiscService(IMiscRepository miscRepository, IUtilService utilService) { this.miscRepository = miscRepository; this.utilService = utilService; }
public GoodWeeFactory(IGraphRepository graph, IGoodWeeRepository goodWee, IMiscRepository misc) { _graph = graph; _goodWee = goodWee; _misc = misc; }
public MiscManager() { if (miscRepository == null) this.miscRepository = new MiscRepository(); }
public MiscService(IMiscRepository miscRepository) { _miscRepository = miscRepository; }
public SunGrowFactory(IGraphRepository graph, ISunGrowRepository sunGrow, IMiscRepository misc) { _graph = graph; _sungrow = sunGrow; _misc = misc; }
public GrowWattFactory(IGraphRepository graph,IGrowWattRepository growWatt, IMiscRepository misc) { _graph = graph; _growWatt = growWatt; _misc = misc; }
public MiscController(IMiscRepository miscRepo) { _rep = miscRepo; }
public MiscService(IUnitOfWork unitOfWork, IMiscRepository miscRepository) : base(unitOfWork) { _miscRepository = miscRepository; }