public ProductVariantAvailabilityServiceBuilder()
 {
     _productStockChecker = A.Fake<IProductStockChecker>();
     A.CallTo(() => _productStockChecker.IsInStock(A<ProductVariant>._)).Returns(true);
     A.CallTo(() => _productStockChecker.CanOrderQuantity(A<ProductVariant>._, A<int>._)).Returns(_canOrderQuantityResult);
     _productShippingChecker = A.Fake<IProductShippingChecker>();
     A.CallTo(() => _productShippingChecker.CanShip(A<ProductVariant>._)).Returns(true);
 }
Exemplo n.º 2
0
 public ProductVariantAvailabilityServiceBuilder()
 {
     _productStockChecker = A.Fake <IProductStockChecker>();
     A.CallTo(() => _productStockChecker.IsInStock(A <ProductVariant> ._)).Returns(true);
     A.CallTo(() => _productStockChecker.CanOrderQuantity(A <ProductVariant> ._, A <int> ._)).Returns(_canOrderQuantityResult);
     _productShippingChecker = A.Fake <IProductShippingChecker>();
     A.CallTo(() => _productShippingChecker.CanShip(A <ProductVariant> ._)).Returns(true);
 }
 public ProductVariantAvailabilityService(IProductStockChecker productStockChecker,
     IProductShippingChecker productShippingChecker)
 {
     _productStockChecker = productStockChecker;
     _productShippingChecker = productShippingChecker;
 }
Exemplo n.º 4
0
 public ProductVariantAvailabilityService(IProductStockChecker productStockChecker,
                                          IProductShippingChecker productShippingChecker)
 {
     _productStockChecker    = productStockChecker;
     _productShippingChecker = productShippingChecker;
 }