コード例 #1
0
        public UpdateCartLineGiftBoxCommandTests()
        {
            _serviceProviderMock = new Mock <IServiceProvider>();
            _updateCartLineGiftBoxPipelineMock = new Mock <IUpdateCartLineGiftBoxPipeline>();
            _findEntityPipelineMock            = new Mock <IFindEntityPipeline>();
            _commerceContextFake = FakeCommercePipelineExecutionContext.CreatePipelineExecutionContext().CommerceContext;

            _command = new UpdateCartLineGiftBoxCommand(_serviceProviderMock.Object,
                                                        _updateCartLineGiftBoxPipelineMock.Object,
                                                        _findEntityPipelineMock.Object);
        }
 public CalculateCartGiftBoxAdjustmentBlockTests()
 {
     _pipelineContextFake = FakeCommercePipelineExecutionContext.CreatePipelineExecutionContext();
     _pipelineBlock       = new CalculateCartGiftBoxAdjustmentBlock();
 }
コード例 #3
0
 public UpdateCartLineGiftBoxBlockTests()
 {
     _pipelineContextFake         = FakeCommercePipelineExecutionContext.CreatePipelineExecutionContext();
     _getSellableItemPipelineMock = new Mock <IGetSellableItemPipeline>();
     _pipelineBlock = new UpdateCartLineGiftBoxBlock(_getSellableItemPipelineMock.Object);
 }