public DescriptionService(IDescriptionRepository descriptionRepository, IPropertySubmissionRepository propertySubmissionRepository, IDescriptionEngine descriptionEngine) { Check.If(descriptionRepository).IsNotNull(); Check.If(propertySubmissionRepository).IsNotNull(); Check.If(descriptionEngine).IsNotNull(); _descriptionRepository = descriptionRepository; _propertySubmissionRepository = propertySubmissionRepository; _descriptionEngine = descriptionEngine; }
public PropertyService(IPropertyRepository propertyService, ILandlordRepository landlordRepository, IPropertySubmissionRepository propertySubmissionRepository, IReferenceGenerator referenceGenerator) { Check.If(propertyService).IsNotNull(); Check.If(landlordRepository).IsNotNull(); Check.If(propertySubmissionRepository).IsNotNull(); Check.If(referenceGenerator).IsNotNull(); _propertyRepository = propertyService; _landlordRepository = landlordRepository; _propertySubmissionRepository = propertySubmissionRepository; _referenceGenerator = referenceGenerator; }