public PropertyAllocationAndAdvertisingFacade(IPropertyServiceFacade propertyService,
            IAdvertiseService autoAdvertiseService, IAllocationService allocationService)
        {
            Check.If(propertyService).IsNotNull();
            Check.If(autoAdvertiseService).IsNotNull();
            Check.If(allocationService).IsNotNull();

            _propertyService = propertyService;
            _autoAdvertiseService = autoAdvertiseService;
            _allocationService = allocationService;
        }
コード例 #2
0
        public AdvertiseService(IFactory<IAdvertiseProvider> autoAdvertiseProviderFactory,
            IAdvertiseResultRepository autoAdvertiseResultRepository, IPropertyServiceFacade propertyService,
            IReferenceGenerator referenceGenerator)
        {
            Check.If(autoAdvertiseProviderFactory).IsNotNull();
            Check.If(autoAdvertiseResultRepository).IsNotNull();
            Check.If(propertyService).IsNotNull();

            _autoAdvertiseProviderFactory = autoAdvertiseProviderFactory;
            _autoAdvertiseResultRepository = autoAdvertiseResultRepository;
            _propertyService = propertyService;
            _referenceGenerator = referenceGenerator;
        }
コード例 #3
0
 public PropertyCaselistController(ICaselistService caselistService, IPropertyServiceFacade propertyService)
 {
     _caselistService = caselistService;
     _propertyService = propertyService;
 }
コード例 #4
0
        public static PropertyCaselistController GetInitialisedPropertyCaselistController(ICaselistService caselistService, IPropertyServiceFacade propertyServiceFacade)
        {
            var controller = new PropertyCaselistController(caselistService, propertyServiceFacade)
            {
                Request = new HttpRequestMessage { RequestUri = new Uri(Url) },
                Configuration = new HttpConfiguration()
            };

            controller.Configuration.MapHttpAttributeRoutes();
            controller.Configuration.EnsureInitialized();

            return controller;
        }
コード例 #5
0
        public static LandlordsController GetInitialisedLandlordsController(IPropertyServiceFacade propertyServiceFacade)
        {
            var controller = new LandlordsController(propertyServiceFacade)
            {
                Request = new HttpRequestMessage { RequestUri = new Uri(Url) },
                Configuration = new HttpConfiguration()
            };

            controller.Configuration.MapHttpAttributeRoutes();
            controller.Configuration.EnsureInitialized();

            return controller;
        }
コード例 #6
0
        public LandlordsController(IPropertyServiceFacade propertyService)
        {
            Check.If(propertyService).IsNotNull();

            _propertyService = propertyService;
        }