コード例 #1
0
 public InventoryFixture() : base()
 {
     this.InventoryEntries = new List <InventoryEntry>();
     this.productFixture   = new ProductFixture();
     this.channelFixture   = new ChannelFixture();
     this.typeFixture      = new TypeFixture();
 }
コード例 #2
0
 public InventoryFixture(ServiceProviderFixture serviceProviderFixture) : base(serviceProviderFixture)
 {
     this.InventoryEntries = new List <InventoryEntry>();
     this.productFixture   = new ProductFixture(serviceProviderFixture);
     this.channelFixture   = new ChannelFixture(serviceProviderFixture);
     this.typeFixture      = new TypeFixture(serviceProviderFixture);
 }
コード例 #3
0
 public OrdersFixture(ServiceProviderFixture serviceProviderFixture) : base(serviceProviderFixture)
 {
     this.OrdersToDelete  = new List <Order>();
     this.cartFixture     = new CartFixture(serviceProviderFixture);
     this.productFixture  = new ProductFixture(serviceProviderFixture);
     this.customerFixture = new CustomerFixture(serviceProviderFixture);
     this.channelFixture  = new ChannelFixture(serviceProviderFixture);
     this.statesFixture   = new StatesFixture(serviceProviderFixture);
     this.typeFixture     = new TypeFixture(serviceProviderFixture);
     this.paymentsFixture = new PaymentsFixture(serviceProviderFixture);
     this.projectFixture  = new ProjectFixture(serviceProviderFixture);
 }
コード例 #4
0
        public ProductProjectionSearchFixture(IMessageSink diagnosticMessageSink)
        {
            //create serviceProviderFixture Instance
            this.serviceProviderFixture = new ServiceProviderFixture(diagnosticMessageSink);

            this.productFixture          = new ProductFixture(this.serviceProviderFixture);
            this.projectFixture          = new ProjectFixture(this.serviceProviderFixture);
            this.categoryFixture         = new CategoryFixture(this.serviceProviderFixture);
            this.productTypeFixture      = new ProductTypeFixture(this.serviceProviderFixture);
            this.taxCategoryFixture      = new TaxCategoryFixture(this.serviceProviderFixture);
            this.stateFixture            = new StatesFixture(this.serviceProviderFixture);
            this.inventoryFixture        = new InventoryFixture(this.serviceProviderFixture);
            this.channelFixture          = new ChannelFixture(this.serviceProviderFixture);
            this.productDiscountsFixture = new ProductDiscountsFixture(this.serviceProviderFixture);
            this.reviewFixture           = new ReviewFixture(this.serviceProviderFixture);

            this.randomInt = TestingUtility.RandomInt();
            //Configure and Create all entities before running tests
            this.ConfigureAndCreateEntitiesBeforeRunningTests();
        }