示例#1
0
 public PropertyListingBusiness(ILogger <PropertyListingBusiness> logger, IMapper mapper,
                                IPropertyListingRepository listingRepository,
                                PropertyListingResponse listingResponse,
                                ICacheManager cache)
 {
     if (logger == null || mapper == null || listingRepository == null || listingResponse == null || cache == null)
     {
         throw new ArgumentNullException("Please check the values being passed");
     }
     _logger            = logger;
     _mapper            = mapper;
     _listingRepository = listingRepository;
     _listingResponse   = listingResponse;
     _cache             = cache;
 }
示例#2
0
 public HomeController()
 {
     _propertyRepo = new PropertyListingRepository();
 }