public frmSaleItemDetails() { InitializeComponent(); _saleItemManager = new SaleItemManager(); _inventoryManager = new InventoryManager(); }
//The window will be used for creating a SaleItem public frmSaleItemDetails(ISaleItemManager saleItemManager, IInventoryManager inventoryManager) { InitializeComponent(); _saleItemManager = saleItemManager; _inventoryManager = inventoryManager; }
public GMGetItemHandler(IGamePacketFactory packetFactory, IGameSession gameSession, IDatabasePreloader databasePreloader, IItemEnchantConfiguration enchantConfig, IItemCreateConfiguration itemCreateConfig, IInventoryManager inventoryManager) : base(packetFactory, gameSession) { _databasePreloader = databasePreloader; _enchantConfig = enchantConfig; _itemCreateConfig = itemCreateConfig; _inventoryManager = inventoryManager; }
public CatalogManager( IPricingManager pricingManager, IInventoryManager inventoryManager) { this.pricingManager = pricingManager; this.inventoryManager = inventoryManager; }
public ReplaceController(IProductManager iProductManager, IProductReplaceManager iProductReplaceManager, IInventoryManager iInventoryManager, IDeliveryManager iDeliveryManager) { _iProductManager = iProductManager; _iProductReplaceManager = iProductReplaceManager; _iInventoryManager = iInventoryManager; _iDeliveryManager = iDeliveryManager; }
public ItemBindingPlugin(IServiceContext context) { // ItemBinding is recommended way of getting items this.owner = context.Owner; this.inventoryManager = context.Inventory; }
/// <summary> /// Set what inventory to use when rendering /// </summary> public void SetInventory(IInventoryManager inventoryManager, InventoryRenderMode renderMode) { OnDisable(); inventory = inventoryManager ?? throw new ArgumentNullException(nameof(inventoryManager)); _renderMode = renderMode; OnEnable(); }
//The window will be used for creating an InventoryItem public frmInventoryDetails(IInventoryManager inventoryManager, IVendorManager vendorManager) { InitializeComponent(); _inventoryManager = inventoryManager; _vendorManager = vendorManager; }
protected void Page_Load(object sender, EventArgs e) { // LOCATE THE USER THAT THE ORDER IS BEING PLACED FOR _UserId = AlwaysConvert.ToInt(Request.QueryString["UID"]); _User = UserDataSource.Load(_UserId); if (_User == null) { Response.Redirect("CreateOrder1.aspx"); } _Basket = _User.Basket; // INITIALIZE INVENTORY VARIABLES _InventoryManager = AbleContext.Resolve <IInventoryManager>(); _StoreInventoryEnabled = AbleContext.Current.Store.Settings.EnableInventory; // SHOW QUANTITY AVAILABLE COLUMN IF INVENTORY IS ENABLED BasketGrid.Columns[4].Visible = _StoreInventoryEnabled; // INITIALIZE THE CAPTION string userName = _User.IsAnonymous ? "Unregistered User" : _User.UserName; Caption.Text = string.Format(Caption.Text, userName); // SEE IF THE ADD PRODUCT FORM SHOULD BE VISIBLE int productId = AlwaysConvert.ToInt(Request.Form[AddProductId.UniqueID]); Product product = ProductDataSource.Load(productId); if (product != null) { ShowProductForm(product); } }
public void ShouldAddProductToTheAcquirerCatalog() { string sku = "999-vyk-317", description = "Cheese cake"; _tenantRepositoryMock.Setup(m => m.Acquirer).Returns(new Tenant(Constants.Configuration.Acquirer, Constants.Configuration.Acquirer, new TenantConfig("p", "s", "ps"))); _tenantRepositoryMock.Setup(m => m.Acquiree).Returns(new Tenant(Constants.Configuration.Acquiree, Constants.Configuration.Acquiree, new TenantConfig("p", "s", "ps"))); _productRepositoryMock.Setup(m => m.GetBySku(Constants.Configuration.Acquirer, "999-vyk-317")) .Returns(new Product(sku, description)); _inventoryManager = new InventoryManager(_productRepositoryMock.Object, _supplierRepositoryMock.Object, _supplierProductBarcodeRepositoryMock.Object, _tenantRepositoryMock.Object); var catalogManager = new CatalogManager(_inventoryManager, _tenantRepositoryMock.Object, _reportGeneratorMock.Object); catalogManager.AddProduct(sku, description); var product = _inventoryManager.GetProductBySku(Constants.Configuration.Acquirer, sku); Assert.AreEqual(product.Sku, sku); Assert.AreEqual(product.Description, description); }
public OrderController(IClientManager iClientManager, IOrderManager iOrderManager, IInventoryManager iInventoryManager, IProductManager iProductManager) { _iClientManager = iClientManager; _iOrderManager = iOrderManager; _iInventoryManager = iInventoryManager; _iProductManager = iProductManager; }
protected GameEvent() { PlayerInfoManager = ServerKernel.Kernel.Get <IPlayerInfoManager>(); GtaCharacter = ServerKernel.Kernel.Get <IGtaCharacter>(); _inventoryManager = ServerKernel.Kernel.Get <IInventoryManager>(); _workEquipmentManager = ServerKernel.Kernel.Get <IWorkEquipmentManager>(); }
/// <summary> /// brings in contexts /// </summary> /// <param name="context">the shop db context</param> /// <param name="emailSender">the email sender context</param> /// <param name="basket">the basket context</param> public CheckoutService(MyShopDbContext context, IEmailSender emailSender, IBasketManager basket, IInventoryManager product) { _basket = basket; _emailSender = emailSender; _shop = context; _product = product; }
/// <summary> /// Initializes a new instance of the <see cref="InventoryItemListViewModel"/> class /// </summary> public InventoryItemListViewModel( IInventoryManager inventoryManager, IDialogCoordinator coordinator, Dispatcher dispatcher) { this._inventoryManager = inventoryManager; this._dialogCoordinator = coordinator; this._dispatcher = dispatcher; CreateItemCommand = new DelegateCommand(this.ExecuteCreate); EditItemCommand = new DelegateCommand(this.ExecuteEdit, () => SelectedItems.Any()); DeleteItemCommand = new DelegateCommand(this.ExecuteDelete, () => Items != null && Items.Count > 0); SearchCommand = new DelegateCommand(this.ExecuteSearch, () => SearchString != null && SearchString != string.Empty); GridHeaders = new List <string>() { "Code", "Description", "Vendor", "Quantity", "Cost", "Price", "Contractor Price", "Electrician Price" }; DropDownOptions = GetDropDownOptions().OrderBy(item => item).ToList(); SelectedField = DropDownOptions.First(); SelectedItems = new List <InventoryItem>(); Items = new ObservableCollection <InventoryItem>(_inventoryManager.Inventory.Items); ItemsToModify = new ObservableCollection <InventoryItem>(); ItemsToModify.CollectionChanged += HandleSave; IsSaving = false; }
public AdminModel(ApplicationDbContext applicationDbContext, MyShopDbContext myShopDbContext, IInventoryManager product, ICheckoutManager order) { _context = applicationDbContext; _shopContext = myShopDbContext; _product = product; _order = order; }
public VirtualMachineController(IUnitManager _unitManager, IInventoryManager _InventoryManager, ILocationManager _locationManager, IHostManager _hostManager) { this._InventoryManager = _InventoryManager; this._unitManager = _unitManager; this._locationManager = _locationManager; this._hostManager = _hostManager; }
public CartServiceTests() { this.cartBuilder = Substitute.For <ICartBuilder <Connect.Cart> >(); this.cartManager = Substitute.For <ICartManager>(); this.inventoryManager = Substitute.For <IInventoryManager>(); var catalogContext = Substitute.For <ICatalogContext>(); this.catalogService = Substitute.For <ICatalogService>(); var storefrontContext = Substitute.For <IStorefrontContext>(); this.visitorContext = Substitute.For <IVisitorContext>(); this.cartService = new CartService( this.cartBuilder, this.cartManager, this.inventoryManager, catalogContext, catalogService, storefrontContext, this.visitorContext); this.fixture = new Fixture().Customize(new OmitOnRecursionCustomization()); this.cartResult = this.fixture.Create <CartResult>(); this.commerceCart = this.fixture.Create <CommerceCart>(); this.cartResult.Cart = this.commerceCart; this.cartManager.LoadCart(Arg.Any <string>(), Arg.Any <string>()).Returns(this.cartResult); }
public CatalogManager(IInventoryManager inventoryManager, ITenantRepository tenantRepository, IReportGenerator reportGenerator) { _inventoryManager = inventoryManager; _tenantRepository = tenantRepository; _reportGenerator = reportGenerator; }
public ProductBuilderTests() { this.variantBuilder = Substitute.For <IVariantBuilder <Item> >(); this.pricingManager = Substitute.For <IPricingManager>(); this.inventoryManager = Substitute.For <IInventoryManager>(); this.storefrontContext = Substitute.For <IStorefrontContext>(); this.getProductBulkPricesResult = this.Fixture.Create <GetProductBulkPricesResult>(); this.pricingManager .GetProductBulkPrices(Arg.Any <string>(), Arg.Any <IEnumerable <string> >(), Arg.Any <string[]>()) .Returns(this.getProductBulkPricesResult); this.getProductPricesResult = this.Fixture.Create <GetProductPricesResult>(); this.pricingManager .GetProductPrices(Arg.Any <string>(), Arg.Any <string>(), Arg.Any <bool>(), Arg.Any <string[]>()) .Returns(this.getProductPricesResult); this.Fixture.Customize <StockInformation>( info => info.With(i => i.Product, this.Fixture.Create <CommerceInventoryProduct>())); this.getStockInformationResult = this.Fixture.Create <GetStockInformationResult>(); this.inventoryManager .GetStockInformation( Arg.Any <string>(), Arg.Any <IEnumerable <CommerceInventoryProduct> >(), Arg.Any <StockDetailsLevel>()) .Returns(this.getStockInformationResult); this.productBuilder = new ProductBuilder( this.variantBuilder, this.CatalogContext, this.pricingManager, this.inventoryManager, this.storefrontContext, this.CatalogMapper); }
public Abilities([Import] IServiceContext context) { _owner = context.Owner as Hero; _owner.Stop(); _factory = context.AbilityFactory; _inventoryManager = context.Inventory; }
public SuperReportController(IOrderManager iOrderManager, IReportManager iReportManager, IInventoryManager iInventoryManager, IDeliveryManager iDeliveryManager) { _iOrderManager = iOrderManager; _iReportManager = iReportManager; _iInventoryManager = iInventoryManager; _iDeliveryManager = iDeliveryManager; }
public CartService( ICartBuilder <Connect.Cart> cartBuilder, ICartManager cartManager, IInventoryManager inventoryManager, ICatalogContext catalogContext, ICatalogService catalogService, IStorefrontContext storefrontContext, IVisitorContext visitorContext) { Assert.ArgumentNotNull(cartBuilder, nameof(cartBuilder)); Assert.ArgumentNotNull(cartManager, nameof(cartManager)); Assert.ArgumentNotNull(inventoryManager, nameof(inventoryManager)); Assert.ArgumentNotNull(catalogContext, nameof(catalogContext)); Assert.ArgumentNotNull(catalogService, nameof(catalogService)); Assert.ArgumentNotNull(storefrontContext, nameof(storefrontContext)); Assert.ArgumentNotNull(visitorContext, nameof(visitorContext)); this.cartBuilder = cartBuilder; this.cartManager = cartManager; this.inventoryManager = inventoryManager; this.catalogContext = catalogContext; this.catalogService = catalogService; this.storefrontContext = storefrontContext; this.visitorContext = visitorContext; }
public frmInventoryDetails() { InitializeComponent(); _inventoryManager = new InventoryManager(); _vendorManager = new VendorManager(); }
public LoginManager( IAccountsProvider accountsProvider, IPlayersProvider playersProvider, IPlayersAppearanceProvider playersAppearanceProvider, IPlayerInfoManager playerInfoManager, IVehicleManager vehicleManager, IVehicleInfoManager vehicleInfoManager, IJailManager jailManager, ICreatingCharManager creatingCharManager, IGtaCharacter gtaCharacter, IInventoryManager inventoryManager, IGiftsManager giftsManager) { _accountsProvider = accountsProvider; _playersProvider = playersProvider; _playerInfoManager = playerInfoManager; _vehicleManager = vehicleManager; _vehicleInfoManager = vehicleInfoManager; _playersAppearanceProvider = playersAppearanceProvider; _jailManager = jailManager; _creatingCharManager = creatingCharManager; _gtaCharacter = gtaCharacter; _inventoryManager = inventoryManager; _giftsManager = giftsManager; }
public PoliceMenuHandler(IWorkEquipmentManager workEquipmentManager, IPlayerInfoManager playerInfoManager, IWorkInfoManager workInfoManager, IInventoryManager inventoryManager, IPoliceAlertManager policeAlertManager) : base(playerInfoManager, workInfoManager) { _workEquipmentManager = workEquipmentManager; _inventoryManager = inventoryManager; _policeAlertManager = policeAlertManager; }
public StreetFights(IResolutionRoot kernel) { _gtaCharacter = kernel.Get <IGtaCharacter>(); _playerInfoManager = kernel.Get <IPlayerInfoManager>(); _inventoryManager = kernel.Get <IInventoryManager>(); _workEquipmentManager = kernel.Get <IWorkEquipmentManager>(); }
public XcProductInventoryRepository(IModelProvider modelProvider, IStorefrontContext storefrontContext, ISiteContext siteContext, ISearchInformation searchInformation, ISearchManager searchManager, ICatalogManager catalogManager, ICatalogUrlManager catalogUrlManager, IInventoryManager inventoryManager, IItemTypeProvider itemTypeProvider, IContext context, IXcBaseCatalogRepository xcBaseCatalogRepository) : base(modelProvider, storefrontContext, siteContext, searchInformation, searchManager, catalogManager, catalogUrlManager, inventoryManager, itemTypeProvider, context) { this.XcBaseCatalogRepository = xcBaseCatalogRepository; }
public ProductController(UserManager <User> userManager, IInventoryManager products, ISearchBarManager search, ICartManager cart, IEmailSender mailManager) { _userManager = userManager; _products = products; _search = search; _cart = cart; _mailManager = mailManager; }
public HomeController(IBranchManager iBranchManager, IClientManager iClientManager, IOrderManager iOrderManager, IEmployeeManager iEmployeeManager, IInventoryManager iInventoryManager) { _iBranchManager = iBranchManager; _iClientManager = iClientManager; _iOrderManager = iOrderManager; _iEmployeeManager = iEmployeeManager; _iInventoryManager = iInventoryManager; }
public ContactManager(IExcelFilesManager excelFilesManager, ITemplateManager templateManager, IInventoryManager inventoryManager, ILogger logger) { _excelFilesManager = excelFilesManager; _templateManager = templateManager; _logger = logger; _inventoryManager = inventoryManager; }
public SampleItemCalculatedAvailabilityCommandLine(IInventoryManager inventoryManager) { _inventoryManager = inventoryManager; IsCommand("sample-item-calculated-availability"); HasOption<int>("i|id=", "The JDE Short Code", s => { _request.itemShort = s; _request.itemShortSpecified = true; }); HasOption("p|product=", "The Product Code", s => { _request.itemPrimary = s; }); }
public BawBagBot(BawBagBotConfiguration configuration) { Guard.NullParameter(configuration, () => configuration); _configuration = configuration; _store = new DocumentStore { ConnectionStringName = "RavenDB" }; _randomProvider = new RandomNumberProvider(); _inventoryManager = new InventoryManager(5, _store, _randomProvider); _textProcessor = new TextProcessor(); _dateTimeProvider = new DefaultDateTimeProvider(); _rooms = new Dictionary<string, Room>(); _botAddressedMatcher = new Regex("^@?" + _configuration.JabbrNick + "[,: ](.*)$", RegexOptions.IgnoreCase); }
public SampleItemAvailabilityCommandLine(IInventoryManager inventoryManager) { _inventoryManager = inventoryManager; IsCommand("sample-item-availability"); HasOption<int>("i|id=", "The JDE Short Code", s => { _request.item = new itemGroupCustomer { itemId = s, itemIdSpecified = true }; }); HasOption("p|product=", "The Product Code", s => { _request.item = new itemGroupCustomer { itemProduct = s }; }); }
public GetPriceCommand(IInventoryManager svc) { _svc = svc; IsCommand("hack"); HasOption("n|num", "item number", s => _code = s); }
public InventoryController(IInventoryManager inventoryManager, IBookManager bookManager, IConsignmentManager consignmentManager) { this.inventoryManager = inventoryManager; this.bookManager = bookManager; this.consignmentManager = consignmentManager; }
public void RunBeforeTests() { //setup branch plant branchPlant bp = new branchPlant(); itemBranch ib = new itemBranch(); item i = new item(); entity1 s = new entity1(); i.itemId = 740498; i.itemProduct = "40970"; s.entityId = 888; ib.branchPlant = "850001"; ib.stockingTypeCode = "P"; ib.primaryUnitOfMeasureCode = "EA"; ib.dateLIFO= new DateTime(2015,06,17); //sprint end date :) ib.supplier = s; bp.itemBranch = ib; bp.item = i; plantArray[0] = bp; //Setup Price itemResponseSupplier ir = new itemResponseSupplier(); ir.itemId = 740498; ir.itemProduct = "40970"; supplierCatalogPrice scp = new supplierCatalogPrice(); scp.priceUnit = 12.87m; scp.priceUnitSpecified = true; scp.quantityActual = 0; scp.quantityActualSpecified = true; scp.item = ir; supplierCatalogPriceArray[0] = scp; //Setup calculated availability itemGroupCustomer igc = new itemGroupCustomer(); igc.itemId = 740498; igc.itemProduct = "40970"; igc.itemDescription = "MRG SF Iowa Branch Plant"; igc.itemUOMPrimary = "UGC"; igc.itemUOMSecondary = "UGC"; igc.itemCatalog = "40970"; igc.itemIdSpecified = true; availabilitySummary avs = new availabilitySummary(); availabilityDetails[] ad = new availabilityDetails[2]; mathNumeric mn = new mathNumeric(); availabilityDetails avdet = new availabilityDetails(); mn.value = 5000; avdet.availableQuantity = mn; avdet.businessUnit = "850001"; avdet.glCategory = "IN30"; avdet.location = "13-09-01-AA-02"; avdet.primaryBin = "S"; ad[0] = avdet; mn = new mathNumeric(); avdet = new availabilityDetails(); mn.value = 0; avdet.availableQuantity = mn; avdet.businessUnit = "850001"; avdet.glCategory = "IN30"; avdet.location = "R - - - - "; avdet.primaryBin = "P"; ad[1] = avdet; avs.availabilityDetails = ad; avs.businessUnit = "850001"; avs.businessUnitDesc = "MRG SF Iowa Branch Plant"; _availabilitySummary[0] = avs; _inventoryManager = Substitute.For<IInventoryManager>(); //set return value for GetBranchPlantItem method call _inventoryManager.GetBranchPlantItem(Arg.Any<getBranchPlantItem>()) .Returns(new showBranchPlantItem { branchPlant = plantArray }); //set return value for GetSupplierCatalogPrice method call _inventoryManager.GetSupplierCatalogPrice(Arg.Any<getSupplierCatalogPrice>()) .Returns(new showSupplierCatalogPrice { supplierCatalogPrice = supplierCatalogPriceArray }); //set return value for calculated availability. _inventoryManager.GetCalculatedAvailability(Arg.Any<getCalculatedAvailability>()) .Returns(new showCalculatedAvailability { item = igc, totalQtyAvailable = 5000, totalQtyAvailableSpecified = true, unitOfMeasure = "EA", showCalculatedAvailability1 = _availabilitySummary }); //instantiate repo _prodRepo = new ProductRepository(_inventoryManager); }
public ConsignmentController(IConsignmentManager consignmentManager, IInventoryManager inventoryManager, IItemManager itemManager) { this.consignmentManager = consignmentManager; this.inventoryManager = inventoryManager; this.itemManager = itemManager; }
public CheckAvailability(IInventoryManager inventoryManager) { _inventoryManager = inventoryManager; }
public ProductRepository(IInventoryManager manager) { _manager = manager; }
public BarCodeApiController(IConsignmentManager consignmentManager, IInventoryManager inventoryManager) { this.consignmentManager = consignmentManager; this.inventoryManager = inventoryManager; }