コード例 #1
0
ファイル: LocalKeyManager.cs プロジェクト: barbarossia/DIS
        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;
        }
コード例 #2
0
 public SunGrowProvider(IGraphRepository graph, ISunGrowRepository sungrow, IMiscRepository misc)
 {
     _graph       = graph;
     _sungrow     = sungrow;
     _misc        = misc;
     apiresponses = new List <APISuccessResponses>();
     mapper       = new EnergyGraphMapper();
 }
コード例 #3
0
 public GoodWeeProvider(IGraphRepository graph, IGoodWeeRepository goodWee, IMiscRepository misc)
 {
     _graph       = graph;
     _goodWee     = goodWee;
     _misc        = misc;
     apiresponses = new List <APISuccessResponses>();
     mapper       = new EnergyGraphMapper();
 }
コード例 #4
0
ファイル: DailyJob.cs プロジェクト: HaiderDigisled/Solis
 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;
 }
コード例 #5
0
 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();
 }
コード例 #6
0
ファイル: HomeController.cs プロジェクト: chisinus/FormBuddy
 public HomeController(IUserRepository userRepo, IMiscRepository miscRepo)
 {
     this.userRepo = userRepo;
     this.miscRepo = miscRepo;
 }
コード例 #7
0
ファイル: MiscTest.cs プロジェクト: jakobyc/GuildWars2.NET
 public MiscTest()
 {
     this.repository = Client.Misc;
 }
コード例 #8
0
 public MiscFacade(IMiscRepository miscRepositoryDAC)
 {
     _miscRepositoryDAC = miscRepositoryDAC ?? throw new ArgumentNullException(nameof(miscRepositoryDAC));
 }
コード例 #9
0
 public MiscService(IMiscRepository miscRepository,
                    IUtilService utilService)
 {
     this.miscRepository = miscRepository;
     this.utilService    = utilService;
 }
コード例 #10
0
 public GoodWeeFactory(IGraphRepository graph, IGoodWeeRepository goodWee, IMiscRepository misc)
 {
     _graph   = graph;
     _goodWee = goodWee;
     _misc    = misc;
 }
コード例 #11
0
ファイル: MiscManager.cs プロジェクト: barbarossia/DIS
 public MiscManager()
 {
     if (miscRepository == null)
        this.miscRepository = new MiscRepository();
 }
コード例 #12
0
 public MiscService(IMiscRepository miscRepository)
 {
     _miscRepository = miscRepository;
 }
コード例 #13
0
 public SunGrowFactory(IGraphRepository graph, ISunGrowRepository sunGrow, IMiscRepository misc)
 {
     _graph   = graph;
     _sungrow = sunGrow;
     _misc    = misc;
 }
コード例 #14
0
 public GrowWattFactory(IGraphRepository graph,IGrowWattRepository growWatt, IMiscRepository misc) {
     _graph = graph;
     _growWatt = growWatt;
     _misc = misc;
 }
コード例 #15
0
 public MiscController(IMiscRepository miscRepo)
 {
     _rep = miscRepo;
 }
コード例 #16
0
 public MiscService(IUnitOfWork unitOfWork, IMiscRepository miscRepository) : base(unitOfWork)
 {
     _miscRepository = miscRepository;
 }