// Used from Controller or Unit Testing public PropertyManager(IPropertyRepo propertyRepo) { if (propertyRepo == null) { throw new ArgumentNullException("propertyRepo"); } this._propertyRepo = propertyRepo; }
public UnitOfWork(DbContext context) { Context = context; products = new ProductRepo(context); users = new UserRepo(context); propertyvalues = new PropertyValueRepo(context); properties = new PropertyRepo(context); manufactures = new ManufactureRepo(context); }
public UnitOfWork(DbContext context) { this.Context = context; Product = new ProductRepo(Context); TypeFilter = new TypeFilterRepo(Context); SubCategory = new SubCategoryRepo(Context); TechSpecFilter = new TechSpecFilterRepo(Context); Property = new PropertyRepo(Context); PropertyValue = new PropertyValueRepo(Context); Category = new CategoryRepo(Context); }
public UnitOfWork(DbContext context) { this.Context = context; consumer = new ConsumerRepo(this.Context); product = new ProductRepo(this.Context); category = new CategoryRepo(this.Context); subCategory = new SubCategoryRepo(this.Context); manufacture = new ManufactureRepo(this.Context); propertyvalue = new PropertyValueRepo(this.Context); property = new PropertyRepo(this.Context); specFilter = new SpecFilterRepo(this.Context); typeFilter = new TypeFilterRepo(this.Context); //add attrs }
public PropertyService(IMapper mapper, IPropertyRepo repo) { _mapper = mapper; _repo = repo; }
public ReqQuotationController(ICompServiceRepo reqQuoteRepo, ICountryRepo countryRepo, IPropertyRepo propertyRepo) { _reqQuoteRepo = reqQuoteRepo; _countryRepo = countryRepo; _propertyRepo = propertyRepo; }
public PropertiesController(IPropertyRepo repository, IMapper mapper) { _repository = repository; _sorter = new PropertySortRepo(); _mapper = mapper; }