Example #1
0
        public ExportProductsManagerTests()
        {
            _productVariantService = A.Fake <IProductVariantService>();

            _getStockRemainingQuantity = A.Fake <IGetStockRemainingQuantity>();
            _exportProductsManager     = new ExportProductsManager(_productVariantService, _getStockRemainingQuantity);
        }
        public ExportProductsManagerTests()
        {
            _productVariantService = A.Fake<IProductVariantService>();

            _getStockRemainingQuantity = A.Fake<IGetStockRemainingQuantity>();
            _exportProductsManager = new ExportProductsManager(_productVariantService, _getStockRemainingQuantity);
        }
Example #3
0
 public GoogleBaseManagerTests()
 {
     _productVariantService     = A.Fake <IProductVariantService>();
     _googleBaseShippingService = A.Fake <IGoogleBaseShippingService>();
     _getStockRemainingQuantity = A.Fake <IGetStockRemainingQuantity>();
     _googleBaseManager         = new GoogleBaseManager(Session, _productVariantService, _googleBaseShippingService, _getStockRemainingQuantity);
 }
Example #4
0
 public GoogleBaseManagerTests()
 {
     _googleBaseShippingService = A.Fake <IGoogleBaseShippingService>();
     _getStockRemainingQuantity = A.Fake <IGetStockRemainingQuantity>();
     _googleBaseManager         = new GoogleBaseManager(Session, _googleBaseShippingService, _getStockRemainingQuantity,
                                                        _productPricingMethod);
 }
 public GoogleBaseManagerTests()
 {
     _productVariantService = A.Fake<IProductVariantService>();
     _googleBaseShippingService = A.Fake<IGoogleBaseShippingService>();
     _getStockRemainingQuantity = A.Fake<IGetStockRemainingQuantity>();
     _googleBaseManager = new GoogleBaseManager(Session, _productVariantService, _googleBaseShippingService,_getStockRemainingQuantity);
 }
Example #6
0
 public GoogleBaseManager(ISession session, IProductVariantService productVariantService,
                          IGoogleBaseShippingService googleBaseShippingService, IGetStockRemainingQuantity getStockRemainingQuantity)
 {
     _session = session;
     _productVariantService     = productVariantService;
     _googleBaseShippingService = googleBaseShippingService;
     _getStockRemainingQuantity = getStockRemainingQuantity;
 }
Example #7
0
 public GoogleBaseManager(ISession session, IProductVariantService productVariantService,
     IGoogleBaseShippingService googleBaseShippingService,IGetStockRemainingQuantity getStockRemainingQuantity)
 {
     _session = session;
     _productVariantService = productVariantService;
     _googleBaseShippingService = googleBaseShippingService;
     _getStockRemainingQuantity = getStockRemainingQuantity;
 }
 public GoogleBaseManager(ISession session,
                          IGoogleBaseShippingService googleBaseShippingService,
                          IGetStockRemainingQuantity getStockRemainingQuantity, IProductPricingMethod productPricingMethod)
 {
     _session = session;
     _googleBaseShippingService = googleBaseShippingService;
     _getStockRemainingQuantity = getStockRemainingQuantity;
     _productPricingMethod      = productPricingMethod;
 }
 public PrepareForSyncAmazonListingServiceTests()
 {
     _amazonListingService = A.Fake<IAmazonListingService>();
     _amazonListingGroupService = A.Fake<IAmazonListingGroupService>();
     _ecommerceSettings = A.Fake<EcommerceSettings>();
     _amazonSellerSettings = A.Fake<AmazonSellerSettings>();
     _productVariantService = A.Fake<IProductVariantService>();
     _getStockRemainingQuantity = A.Fake<IGetStockRemainingQuantity>();
     _prepareForSyncAmazonListingService = new PrepareForSyncAmazonListingService(_amazonListingService,_amazonListingGroupService,
     _ecommerceSettings,_amazonSellerSettings,_productVariantService, _getStockRemainingQuantity);
 }
 public PrepareForSyncAmazonListingServiceTests()
 {
     _amazonListingService               = A.Fake <IAmazonListingService>();
     _amazonListingGroupService          = A.Fake <IAmazonListingGroupService>();
     _ecommerceSettings                  = A.Fake <EcommerceSettings>();
     _amazonSellerSettings               = A.Fake <AmazonSellerSettings>();
     _productVariantService              = A.Fake <IProductVariantService>();
     _getStockRemainingQuantity          = A.Fake <IGetStockRemainingQuantity>();
     _prepareForSyncAmazonListingService = new PrepareForSyncAmazonListingService(_amazonListingService, _amazonListingGroupService,
                                                                                  _ecommerceSettings, _amazonSellerSettings, _productVariantService, _getStockRemainingQuantity, _productPricingMethod);
 }
Example #11
0
 public PrepareForSyncAmazonListingService(
     IAmazonListingService amazonListingService,
     IAmazonListingGroupService amazonListingGroupService,
     EcommerceSettings ecommerceSettings,
     AmazonSellerSettings amazonSellerSettings,
     IProductVariantService productVariantService,
     IGetStockRemainingQuantity getStockRemainingQuantity)
 {
     _amazonListingService      = amazonListingService;
     _amazonListingGroupService = amazonListingGroupService;
     _ecommerceSettings         = ecommerceSettings;
     _amazonSellerSettings      = amazonSellerSettings;
     _productVariantService     = productVariantService;
     _getStockRemainingQuantity = getStockRemainingQuantity;
 }
 public PrepareForSyncAmazonListingService(
     IAmazonListingService amazonListingService,
     IAmazonListingGroupService amazonListingGroupService,
     EcommerceSettings ecommerceSettings,
     AmazonSellerSettings amazonSellerSettings,
     IProductVariantService productVariantService,
     IGetStockRemainingQuantity getStockRemainingQuantity)
 {
     _amazonListingService = amazonListingService;
     _amazonListingGroupService = amazonListingGroupService;
     _ecommerceSettings = ecommerceSettings;
     _amazonSellerSettings = amazonSellerSettings;
     _productVariantService = productVariantService;
     _getStockRemainingQuantity = getStockRemainingQuantity;
 }
Example #13
0
 public ExportProductsManager(IProductVariantService productVariantService, IGetStockRemainingQuantity getStockRemainingQuantity)
 {
     _productVariantService     = productVariantService;
     _getStockRemainingQuantity = getStockRemainingQuantity;
 }
Example #14
0
 public ProductStockChecker(IGetStockRemainingQuantity getStockRemainingQuantity)
 {
     _getStockRemainingQuantity = getStockRemainingQuantity;
 }
Example #15
0
 public ExportProductsManager(IProductVariantService productVariantService, IGetStockRemainingQuantity getStockRemainingQuantity)
 {
     _productVariantService = productVariantService;
     _getStockRemainingQuantity = getStockRemainingQuantity;
 }
Example #16
0
 private static void AddVariantInfo(int i, ExcelWorksheet wsItems, IList<ProductVariant> productVariants, int rowId, IGetStockRemainingQuantity getStockRemainingQuantity)
 {
     wsItems.Cells["K" + rowId].Value = productVariants[i].Name ?? String.Empty;
     wsItems.Cells["L" + rowId].Value = productVariants[i].BasePrice;
     wsItems.Cells["M" + rowId].Value = productVariants[i].PreviousPrice;
     if (productVariants[i].TaxRate != null)
         wsItems.Cells["N" + rowId].Value = productVariants[i].TaxRate.Id;
     wsItems.Cells["O" + rowId].Value = productVariants[i].Weight;
     wsItems.Cells["P" + rowId].Value = getStockRemainingQuantity.Get(productVariants[i]);
     wsItems.Cells["Q" + rowId].Value = productVariants[i].TrackingPolicy;
     wsItems.Cells["R" + rowId].Value = productVariants[i].SKU;
     wsItems.Cells["S" + rowId].Value = productVariants[i].Barcode;
     wsItems.Cells["T" + rowId].Value = productVariants[i].ManufacturerPartNumber;
     wsItems.Cells["AG" + rowId].Value = (productVariants[i].ETag != null) ? productVariants[i].ETag.Name : String.Empty;
 }
Example #17
0
 public GetStockReportFile(IGetStockRemainingQuantity getStockRemainingQuantity, ICSVFileWriter csvFileWriter)
 {
     _getStockRemainingQuantity = getStockRemainingQuantity;
     _csvFileWriter = csvFileWriter;
 }
Example #18
0
 public ProductStockChecker(IGetStockRemainingQuantity getStockRemainingQuantity)
 {
     _getStockRemainingQuantity = getStockRemainingQuantity;
 }
Example #19
0
 public GetStockReportFile(IGetStockRemainingQuantity getStockRemainingQuantity, ICSVFileWriter csvFileWriter)
 {
     _getStockRemainingQuantity = getStockRemainingQuantity;
     _csvFileWriter             = csvFileWriter;
 }
Example #20
0
 private static void AddVariantInfo(int i, ExcelWorksheet wsItems, IList <ProductVariant> productVariants, int rowId, IGetStockRemainingQuantity getStockRemainingQuantity)
 {
     wsItems.Cells["K" + rowId].Value = productVariants[i].Name ?? String.Empty;
     wsItems.Cells["L" + rowId].Value = productVariants[i].BasePrice;
     wsItems.Cells["M" + rowId].Value = productVariants[i].PreviousPrice;
     if (productVariants[i].TaxRate != null)
     {
         wsItems.Cells["N" + rowId].Value = productVariants[i].TaxRate.Id;
     }
     wsItems.Cells["O" + rowId].Value  = productVariants[i].Weight;
     wsItems.Cells["P" + rowId].Value  = getStockRemainingQuantity.Get(productVariants[i]);
     wsItems.Cells["Q" + rowId].Value  = productVariants[i].TrackingPolicy;
     wsItems.Cells["R" + rowId].Value  = productVariants[i].SKU;
     wsItems.Cells["S" + rowId].Value  = productVariants[i].Barcode;
     wsItems.Cells["T" + rowId].Value  = productVariants[i].ManufacturerPartNumber;
     wsItems.Cells["AG" + rowId].Value = (productVariants[i].ETag != null) ? productVariants[i].ETag.Name : String.Empty;
 }