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; }
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; }
public PropertyCaselistController(ICaselistService caselistService, IPropertyServiceFacade propertyService) { _caselistService = caselistService; _propertyService = propertyService; }
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; }
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; }
public LandlordsController(IPropertyServiceFacade propertyService) { Check.If(propertyService).IsNotNull(); _propertyService = propertyService; }