コード例 #1
0
 public ProductFixture(ServiceProviderFixture serviceProviderFixture) : base(serviceProviderFixture)
 {
     this.ProductsToDelete   = new List <Product>();
     this.productTypeFixture = new ProductTypeFixture(serviceProviderFixture);
     this.categoryFixture    = new CategoryFixture(serviceProviderFixture);
     this.taxCategoryFixture = new TaxCategoryFixture(serviceProviderFixture);
     this.typeFixture        = new TypeFixture(serviceProviderFixture);
     this.statesFixture      = new StatesFixture(serviceProviderFixture);
 }
コード例 #2
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();
        }
 public ProductDiscountsFixture(ServiceProviderFixture serviceProviderFixture) : base(serviceProviderFixture)
 {
     this.ProductDiscountsToDelete = new List <ProductDiscount>();
     this.productTypeFixture       = new ProductTypeFixture(serviceProviderFixture);
     this.productFixture           = new ProductFixture(serviceProviderFixture);
 }
コード例 #4
0
 public ProductDiscountsFixture() : base()
 {
     this.ProductDiscountsToDelete = new List <ProductDiscount>();
     this.productTypeFixture       = new ProductTypeFixture();
     this.productFixture           = new ProductFixture();
 }