Example #1
0
        public AddController(
            IAddsServices service,
            IMapper mapper,
            ICategoriesServices categoriesService,
            IProvincesServices provinceServices,
            ICitiesServices citiesServices)

        {
            Guard.WhenArgument(service, "service").IsNull().Throw();
            Guard.WhenArgument(mapper, "mapper").IsNull().Throw();
            Guard.WhenArgument(categoriesService, "categoriesService").IsNull().Throw();
            Guard.WhenArgument(provinceServices, "provinceServices").IsNull().Throw();
            Guard.WhenArgument(citiesServices, "citiesServices").IsNull().Throw();

            this.addService        = service;
            this.mapper            = mapper;
            this.categoriesService = categoriesService;
            this.provinceServices  = provinceServices;
            this.citiesServices    = citiesServices;
        }
Example #2
0
 public ProvincesController(IProvincesServices provincesServices)
 {
     this.provincesServices = provincesServices;
 }