Ejemplo n.º 1
0
        public PurchaseService(IProductRepository productRepository,
                               IPointsPromotionRepository pointsPromotionRepository,
                               IDiscountPromotionRepository discountPromotionRepository,
                               IDiscountPromotionProductRepository discountPromotionProductRepository)
        {
            ProductRepository                  = productRepository;
            PointsPromotionRepository          = pointsPromotionRepository;
            DiscountPromotionRepository        = discountPromotionRepository;
            DiscountPromotionProductRepository = discountPromotionProductRepository;

            // Again, in the real-world, structured logging should be used throughout the code base, e.g. inject ILogger<PurchaseService> here.
        }
Ejemplo n.º 2
0
 public DiscountPromotionService(IRepositoryContext context
                                 , IDiscountPromotionRepository hotelPromotionRepository
                                 , IHotelRepository hotelRepository
                                 , ICustomerRoleRepository customerRoleRepository
                                 , IHotelRoomCategoryRepository hotelRoomCategoryRepository
                                 , IHotelPromotionCustomerRoleService hotelPromotionCustomerRoleService
                                 , IHotelPromotionRoomCategoryService hotelPromotionRoomCategoryService)
     : base(context
            , hotelPromotionRepository
            , hotelRepository
            , customerRoleRepository
            , hotelRoomCategoryRepository
            , hotelPromotionCustomerRoleService
            , hotelPromotionRoomCategoryService)
 {
 }