コード例 #1
0
 public MercenaryManagement(IMercenaryRepository mercenaryRepository, IAccountManagement accountManagement,
                            IMercenaryTemplateRepository mercenaryTemplateRepository, IValueRandomizer randomizer,
                            IConfigRepository configRepository, IRecruitsRepository recruitsRepository, IInventoryManagement inventoryManagement,
                            IRefreshingMechnism refreshingMechnism)
 {
     _mercenaryRepository         = mercenaryRepository;
     _accountManagement           = accountManagement;
     _mercenaryTemplateRepository = mercenaryTemplateRepository;
     _randomizer          = randomizer;
     _configRepository    = configRepository;
     _recruitsRepository  = recruitsRepository;
     _inventoryManagement = inventoryManagement;
     _refreshingMechnism  = refreshingMechnism;
 }
コード例 #2
0
        public OrderFulfillment(
            ILocationService locationService,
            IInventoryManagement inventoryManagement)
        {
            if (locationService == null)
            {
                throw new ArgumentNullException(nameof(locationService));
            }
            if (inventoryManagement == null)
            {
                throw new ArgumentNullException(nameof(inventoryManagement));
            }

            this.locationService     = locationService;
            this.inventoryManagement = inventoryManagement;
        }
コード例 #3
0
 public InventoriesController(IInventoryManagement inventoryManagement)
 {
     this.inventoryManagement = inventoryManagement;
 }
コード例 #4
0
ファイル: InventoryScreen.cs プロジェクト: lethanus/HeroGame2
 public InventoryScreen(IInventoryManagement inventoryManagement)
 {
     InitializeComponent();
     _inventoryManagement = inventoryManagement;
 }