Beispiel #1
0
        public AllSupplementsController(ISupplementsService supplements, IDropDownListPopulator populator)
        {
            Guard.WhenArgument(supplements, "supplements").IsNull().Throw();
            Guard.WhenArgument(populator, "populator").IsNull().Throw();

            this.supplements = supplements;
            this.populator   = populator;
        }
Beispiel #2
0
        public SupplementsController(ISupplementsService supplements, IDropDownListPopulator populator, IEfGenericRepository <ApplicationUser> repoUser)
            : base(repoUser)
        {
            Guard.WhenArgument(supplements, "supplements").IsNull().Throw();
            Guard.WhenArgument(populator, "populator").IsNull().Throw();

            this.supplements = supplements;
            this.populator   = populator;
        }
        public HomeService(ITopicsService topics, IBrandsService brands, ICategoriesService categories, ISupplementsService supplements)
        {
            Guard.WhenArgument(topics, "topics").IsNull().Throw();
            Guard.WhenArgument(brands, "brands").IsNull().Throw();
            Guard.WhenArgument(categories, "categories").IsNull().Throw();
            Guard.WhenArgument(supplements, "supplements").IsNull().Throw();

            this.supplements = supplements;
            this.categories  = categories;
            this.brands      = brands;
            this.topics      = topics;
        }