Beispiel #1
0
 public ProductController(IPageDataContextRetriever dataRetriever, ICalculationService calculationService,
                          VariantRepository variantRepository, TypedProductViewModelFactory typedProductViewModelFactory,
                          IShoppingService shoppingService, ISKUInfoProvider skuInfoProvider)
 {
     this.dataRetriever                = dataRetriever;
     this.calculationService           = calculationService;
     this.variantRepository            = variantRepository;
     this.typedProductViewModelFactory = typedProductViewModelFactory;
     this.shoppingService              = shoppingService;
     this.skuInfoProvider              = skuInfoProvider;
 }
Beispiel #2
0
 public UnitOfWork(TheaterDbContext context)
 {
     _context = context;
     Addresses = new AddressRepository(_context);
     Orders = new OrderRepository(_context);
     Performances = new PerformanceRepository(_context);
     Questions = new QuestionRepository(_context);
     TheaterPerformances = new TheaterPerformanceRepository(_context);
     UserAnswers = new UserAnswerRepository(_context);
     Users = new UserRepository(_context);
     Variants = new VariantRepository(_context);
     Theaters = new TheaterRepository(_context);
 }
 public CatalogService(RequestContext c,
                       CategoryRepository categories,
                       CategoryProductAssociationRepository crosses,
                       ProductRepository products,
                       ProductRelationshipRepository relationships,
                       ProductImageRepository productImages,
                       ProductReviewRepository productReviews,
                       VariantRepository productVariants,
                       OptionRepository productOptions,
                       ProductOptionAssociationRepository productsXOptions,
                       ProductFileRepository productFiles,
                       ProductVolumeDiscountRepository volumeDiscounts,
                       ProductPropertyValueRepository propertyValues,
                       ProductInventoryRepository inventory,
                       ProductTypeRepository types,
                       ProductTypePropertyAssociationRepository typesXProperties,
                       ProductPropertyRepository properties,
                       WishListItemRepository wishItems)
 {
     context = c;
     Categories = categories;
     CategoriesXProducts = crosses;
     ProductRelationships = relationships;
     this.Products = products;
     this.ProductImages = productImages;
     this.ProductReviews = productReviews;
     this.ProductVariants = productVariants;
     this.ProductOptions = productOptions;
     this.ProductsXOptions = productsXOptions;
     this.ProductFiles = productFiles;
     this.VolumeDiscounts = volumeDiscounts;
     this.ProductPropertyValues = propertyValues;
     this.ProductInventories = inventory;
     this.ProductTypes = types;
     this.ProductTypesXProperties = typesXProperties;
     this.ProductProperties = properties;
     this.WishListItems = wishItems;
 }