本文整理汇总了C#中IOrderProcessor类的典型用法代码示例。如果您正苦于以下问题:C# IOrderProcessor类的具体用法?C# IOrderProcessor怎么用?C# IOrderProcessor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IOrderProcessor类属于命名空间,在下文中一共展示了IOrderProcessor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CartController
//El constructor va a pedir que le pasen el producto
public CartController(
IProductRepository productRepository,
IOrderProcessor orderProcessor)
{
_productRepository = productRepository;
_orderProcessor = orderProcessor;
}
示例2: PracticumInputProcessor
public PracticumInputProcessor(TextReader input, TextWriter output, IOrderProcessor orderProcessor)
{
//Error = error;
Output = output;
Input = input;
this.orderProcessor = orderProcessor;
}
示例3: CartController
public CartController(IProductRepository repository, IOrderProcessor orderProcessor, IAddressCustomerRepository addressCustomerRepository, IUserRepository userRepository, IAddressRepository addressRepository)
{
_repository = repository;
_orderProcessor = orderProcessor;
_addressCustomerRepository = addressCustomerRepository;
_userRepository = userRepository;
_addressRepository = addressRepository;
}
示例4: CartController
public CartController(IProductRepository repo, IOrderRepository orderRepo, IOrderItemRepository orderItemRepo, IOrderProcessor proc, IAddressRepository repoAddress, ICustomerRepository repoCustomer)
{
repository = repo;
orderRepository = orderRepo;
orderItemRepository = orderItemRepo;
orderProcessor = proc;
repositoryAddress = repoAddress;
repositoryCustomer = repoCustomer;
}
示例5: OrderController
public OrderController(IGetProductService getProductService,
IHttpSession session, IOrderProcessor orderProcessor,
IGetObjectService<Order> getOrderService,
ISaveObjectService<Order> saveOrderService)
{
_session = session;
_orderProcessor = orderProcessor;
_getOrderService = getOrderService;
_saveOrderService = saveOrderService;
_getProductService = getProductService;
}
示例6:
public CheckoutController
(
IOrderProcessor orderProcessor,
IProductRepository product,
IOrderRepository order,
IOrderStatusRepository orderStatus,
IOrderItemRepository orderItem
)
{
_orderProcessor = orderProcessor;
_product = product;
_order = order;
_orderStatus = orderStatus;
_orderItem = orderItem;
}
示例7: Establish_context
protected override void Establish_context()
{
var productRepository = ObjectFactory.GetInstance<ISaveObjectService<Product>>();
var orderRepository = ObjectFactory.GetInstance<ISaveObjectService<Order>>();
var product = new Product { Price = 10, IsActive = true, Name = "foo" };
productRepository.Create(product);
_order = new Order
{
StateCode = "OH",
Products = new List<Product> { product }
};
orderRepository.Create(_order);
_orderProcessor = ObjectFactory.GetInstance<IOrderProcessor>();
}
示例8: CartController
public CartController(IOrderProcessor orderProcessor)
{
_orderProcessor = orderProcessor;
}
示例9: CartController
public CartController(IProductRepository rep, IOrderProcessor proc)
{
this.repository = rep;
this.orderProcessor = proc;
}
示例10: CartApplicationService
public CartApplicationService(IOrderProcessor processor)
{
orderRepository = processor;
}
示例11: CartController
public CartController(IProductRepository repo, IOrderProcessor orderProcessorParam)
{
repository = repo;
orderProcessor = orderProcessorParam;
}
示例12: CartController
public CartController(IProductsRepository repo,IOrderProcessor order)
{
repository = repo;
orderprocessor = order;
}
示例13: CartController
public CartController(IProductRepository repo, IOrderProcessor processor)
{
_repository = repo;
_orderProcessor = processor;
}
示例14: PaymentProcessorController
public PaymentProcessorController(IOrderProcessor proc)
{
orderProcessor = proc;
}
示例15: OrderController
public OrderController(IOrderRepository repository, IOrderProcessor processor,ISaveOrderProcessor saveProcessor)
{
orderRepository = repository;
orderProcessor = processor;
saveOrderProcessor = saveProcessor;
}