Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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;
 }