public void SetUp() { _mocks = new MockRepository(); _mockedOrderItemStatusFactory = _mocks.StrictMock <IOrderItemStatusFactory>(); _mockedDataRecorderMetaDataFactory = _mocks.StrictMock <IDataRecorderMetaDataFactory>(); _mapper = new OrderDetailMapper(_mockedOrderItemStatusFactory, _mockedDataRecorderMetaDataFactory); }
public void SetUp() { _mocks = new MockRepository(); _dataRecorderMetaDataFactory = _mocks.StrictMock <IDataRecorderMetaDataFactory>(); _orderItemStatusFactory = _mocks.StrictMock <IOrderItemStatusFactory>(); _mocks.StrictMock <IMapper <OrderDetail, OrderDetailEntity> >(); _orderDetailFactory = new OrderDetailFactory(_dataRecorderMetaDataFactory, _orderItemStatusFactory); }
protected void SetUp() { _orderRepository = _mocks.StrictMock <IOrderRepository>(); _orderItemRepository = _mocks.StrictMock <IOrderItemRepository>(); _orderFactory = _mocks.StrictMock <IOrderFactory>(); _orderDetailFactory = _mocks.StrictMock <IOrderDetailFactory>(); _orderItemStatusFactory = _mocks.StrictMock <IOrderItemStatusFactory>(); _orderSynchronizationService = _mocks.StrictMock <IOrderSynchronizationService>(); _refundRepository = _mocks.StrictMock <IUniqueItemRepository <Refund> >(); _electronicProductRepository = _mocks.StrictMock <IElectronicProductRepository>(); _shippingDetailRepository = _mocks.StrictMock <IShippingDetailRepository>(); _preApprovedTestRepository = _mocks.StrictMock <IPreApprovedTestRepository>(); _preApprovedPackageRepository = _mocks.StrictMock <IPreApprovedPackageRepository>(); _organizationRoleUserRepository = _mocks.StrictMock <IOrganizationRoleUserRepository>(); _orderController = new OrderController(_orderRepository, _orderItemRepository, _orderFactory, _orderDetailFactory, _electronicProductRepository, _orderItemStatusFactory, _orderSynchronizationService, _refundRepository, _shippingDetailRepository, _preApprovedTestRepository, _preApprovedPackageRepository, _organizationRoleUserRepository); }
public OrderController(IOrderRepository orderRepository, IOrderItemRepository orderItemRepository, IOrderFactory orderFactory, IOrderDetailFactory orderDetailFactory, IElectronicProductRepository electronicProductRepository, IOrderItemStatusFactory orderItemStatusFactory, IOrderSynchronizationService orderSynchronizationService, IUniqueItemRepository <Refund> refundRepository, IShippingDetailRepository shippingDetailRepository, IPreApprovedTestRepository preApprovedTestRepository, IPreApprovedPackageRepository preApprovedPackageRepository, IOrganizationRoleUserRepository organizationRoleUserRepository) { _orderRepository = orderRepository; _orderItemStatusFactory = orderItemStatusFactory; _orderItemRepository = orderItemRepository; _orderFactory = orderFactory; _orderDetailFactory = orderDetailFactory; _orderSynchronizationService = orderSynchronizationService; _refundRepository = refundRepository; _electronicProductRepository = electronicProductRepository; _shippingDetailRepository = shippingDetailRepository; _preApprovedTestRepository = preApprovedTestRepository; _preApprovedPackageRepository = preApprovedPackageRepository; _organizationRoleUserRepository = organizationRoleUserRepository; }
public OrderDetailFactory(IDataRecorderMetaDataFactory dataRecorderMetaDataFactory, IOrderItemStatusFactory orderItemStatusFactory) { _dataRecorderMetaDataFactory = dataRecorderMetaDataFactory; _orderItemStatusFactory = orderItemStatusFactory; }
public OrderDetailMapper(IOrderItemStatusFactory orderItemStatusFactory, IDataRecorderMetaDataFactory dataRecorderMetaDataFactory) { _orderItemStatusFactory = orderItemStatusFactory; _dataRecorderMetaDataFactory = dataRecorderMetaDataFactory; }