public TemplateRepository(IAutoResponderContext autoResponderContext, IMapToExisting<Template, Template> templateMapper)
        {
            Check.If(autoResponderContext).IsNotNull();
            Check.If(templateMapper).IsNotNull();

            _autoResponderContext = autoResponderContext;
            _templateMapper = templateMapper;
        }
        public VideoRepository(IPropertiesContext propertiesContext, IMapToExisting<Video, Video> videoMapper)
        {
            Check.If(propertiesContext).IsNotNull();
            Check.If(videoMapper).IsNotNull();

            _propertiesContext = propertiesContext;
            _videoMapper = videoMapper;
        }
        public AmenityRepository(IPropertiesContext propertiesContext, IMapToExisting<Amenity, Amenity> amenityMapper)
        {
            Check.If(propertiesContext).IsNotNull();
            Check.If(amenityMapper).IsNotNull();

            _propertiesContext = propertiesContext;
            _amenityMapper = amenityMapper;
        }
Example #4
0
        public NoteRepository(INoteContext noteContext, IMapToExisting<Note, Note> noteMapper)
        {
            Check.If(noteContext).IsNotNull();
            Check.If(noteMapper).IsNotNull();

            _noteContext = noteContext;
            _noteMapper = noteMapper;
        }
        public EmailRepository(IApplicationsContext applicationsContext, IMapToExisting<Email, Email> emailMapper)
        {
            Check.If(applicationsContext).IsNotNull();
            Check.If(emailMapper).IsNotNull();

            _applicationsContext = applicationsContext;
            _emailMapper = emailMapper;
        }
        public UploadRepository(IPropertiesContext propertiesContext, IMapToExisting<Upload, Upload> uploadMapper)
        {
            Check.If(propertiesContext).IsNotNull();
            Check.If(uploadMapper).IsNotNull();

            _propertiesContext = propertiesContext;
            _uploadMapper = uploadMapper;
        }
Example #7
0
        public EventRepository(IEventContext eventContext, IMapToExisting<Event, Event> eventMapper)
        {
            Check.If(eventContext).IsNotNull();
            Check.If(eventMapper).IsNotNull();

            _eventContext = eventContext;
            _eventMapper = eventMapper;
        }
        public PropertyCheckRepository(IPropertiesContext propertiesContext, IMapToExisting<PropertyCheck, PropertyCheck> checkMapper)
        {
            Check.If(propertiesContext).IsNotNull();
            Check.If(checkMapper).IsNotNull();

            _propertiesContext = propertiesContext;
            _checkMapper = checkMapper;
        }
        public PropertyDetailRepository(IPropertiesContext propertiesContext, IMapToExisting<PropertyDetail, PropertyDetail> propertyDetailMapper)
        {
            Check.If(propertiesContext).IsNotNull();
            Check.If(propertyDetailMapper).IsNotNull();

            _propertiesContext = propertiesContext;
            _propertyDetailMapper = propertyDetailMapper;
        }
        public PhotoRepository(IPropertiesContext propertiesContext, IMapToExisting<Photo, Photo> photoMapper)
        {
            Check.If(propertiesContext).IsNotNull();
            Check.If(photoMapper).IsNotNull();

            _propertiesContext = propertiesContext;
            _photoMapper = photoMapper;
        }
        public AdvertiseResultRepository(IPropertiesContext propertiesContext, IMapToExisting<Job, Job> jobMapper)
        {
            Check.If(propertiesContext).IsNotNull();
            Check.If(jobMapper).IsNotNull();

            _propertiesContext = propertiesContext;
            _jobMapper = jobMapper;
        }
        public PriceRangeRepository(IPropertyMatrixContext propertyMatrixContext, IMapToExisting<PriceRange, PriceRange> mapper)
        {
            Check.If(propertyMatrixContext).IsNotNull();
            Check.If(mapper).IsNotNull();

            _propertyMatrixContext = propertyMatrixContext;
            _mapper = mapper;
        }
        public RequirementRepository(IApplicationsContext applicationsContext, IMapToExisting<Requirement, Requirement> requirementMapper)
        {
            Check.If(applicationsContext).IsNotNull();
            Check.If(requirementMapper).IsNotNull();

            _applicationsContext = applicationsContext;
            _requirementMapper = requirementMapper;
        }
        public ContactDetailRepository(IPropertiesContext propertiesContext, IMapToExisting<ContactDetail, ContactDetail> contactDetailMapper)
        {
            Check.If(propertiesContext).IsNotNull();
            Check.If(contactDetailMapper).IsNotNull();

            _propertiesContext = propertiesContext;
            _contactDetailMapper = contactDetailMapper;
        }
        public PostcodeAreaRepository(IPropertiesContext propertiesContext, IMapToExisting<PostcodeArea, PostcodeArea> postcodeAreaMapper)
        {
            Check.If(propertiesContext).IsNotNull();
            Check.If(postcodeAreaMapper).IsNotNull();

            _propertiesContext = propertiesContext;
            _postcodeAreaMapper = postcodeAreaMapper;
        }
        public PropertySubmissionRepository(IPropertiesContext propertiesContext,
            IMapToExisting<SubmittedProperty, SubmittedProperty> submittedPropertyMapper)
        {
            Check.If(propertiesContext).IsNotNull();
            Check.If(submittedPropertyMapper).IsNotNull();

            _propertiesContext = propertiesContext;
            _submittedPropertyMapper = submittedPropertyMapper;
        }
        public LandlordRepository(IPropertiesContext propertiesContext,
            IMapToExisting<Landlord, Landlord> landlordMapper)
        {
            Check.If(propertiesContext).IsNotNull();
            Check.If(landlordMapper).IsNotNull();

            _propertiesContext = propertiesContext;
            _landlordMapper = landlordMapper;
        }
        public CustomerRepository(IApplicationsContext applicationsContext,
            IMapToExisting<Customer, Customer> customerMapper)
        {
            Check.If(applicationsContext).IsNotNull();
            Check.If(customerMapper).IsNotNull();

            _applicationsContext = applicationsContext;
            _customerMapper = customerMapper;
        }
        public PropertyRepository(IApplicationsContext applicationsContext,
            IMapToExisting<Property, Property> propertyMapper)
        {
            Check.If(applicationsContext).IsNotNull();
            Check.If(propertyMapper).IsNotNull();

            _applicationsContext = applicationsContext;
            _propertyMapper = propertyMapper;
        }
        public CertificateRepository(IPropertiesContext propertiesContext,
            IMapToExisting<Certificate, Certificate> certificateMapper)
        {
            Check.If(propertiesContext).IsNotNull();
            Check.If(certificateMapper).IsNotNull();

            _propertiesContext = propertiesContext;
            _certificateMapper = certificateMapper;
        }
        public TelephoneNumberRepository(IApplicationsContext applicationsContext,
            IMapToExisting<TelephoneNumber, TelephoneNumber> telephoneNumberMapper)
        {
            Check.If(applicationsContext).IsNotNull();
            Check.If(telephoneNumberMapper).IsNotNull();

            _applicationsContext = applicationsContext;
            _telephoneNumberMapper = telephoneNumberMapper;
        }
        public CheckRepository(IApplicationsContext applicationsContext,
            IMapToExisting<CheckResult, CheckResult> checkResultMapper)
        {
            Check.If(applicationsContext).IsNotNull();
            Check.If(checkResultMapper).IsNotNull();

            _applicationsContext = applicationsContext;
            _checkResultMapper = checkResultMapper;
        }
        public AddressRepository(IApplicationsContext applicationsContext,
            IMapToExisting<Address, Address> addressMapper)
        {
            Check.If(applicationsContext).IsNotNull();
            Check.If(addressMapper).IsNotNull();

            _applicationsContext = applicationsContext;
            _addressMapper = addressMapper;
        }
        public ApplicationRepository(IApplicationsContext applicationsContext, IMapToExisting<Application, Application> applicationMapper, IArchiveWindowSettings archiveWindowSettings)
        {
            Check.If(applicationsContext).IsNotNull();
            Check.If(applicationMapper).IsNotNull();
            Check.If(archiveWindowSettings).IsNotNull();

            _applicationsContext = applicationsContext;
            _applicationMapper = applicationMapper;
            _archiveWindowSettings = archiveWindowSettings;
        }
 public CallRepository(IDatabaseSettings databaseSettings, IPhoneNumberService phoneNumberService, IMapToExisting<Call, Call> callMapper)
 {
     _databaseSettings = databaseSettings;
     _phoneNumberService = phoneNumberService;
     _callMapper = callMapper;
 }
 public AttachmentRepository(IDatabaseSettings databaseSettings, IMapToExisting<Attachment, Attachment> attachmentMapper)
 {
     _databaseSettings = databaseSettings;
     _attachmentMapper = attachmentMapper;
 }
 public SmsRepository(IDatabaseSettings databaseSettings, IPhoneNumberService phoneNumberService, IMapToExisting<Sms,Sms> smsMapper)
 {
     _databaseSettings = databaseSettings;
     _phoneNumberService = phoneNumberService;
     _smsMapper = smsMapper;
 }
Example #28
0
 public AbsBuybackUpdater(IBuybackResultRepository buybackResultRepository, IGSVRepository gsvRepository, IMapToExisting <AbsBuybackResult, GroupSaleVehicle> gsvMapper)
 {
     this.buybackResultRepository = buybackResultRepository;
     this.gsvRepository           = gsvRepository;
     this.gsvMapper = gsvMapper;
 }
 public EmailRepository(IDatabaseSettings databaseSettings, IMapToExisting<Email, Email> emailMapper, IEmailAddressService emailAddressService)
 {
     _databaseSettings = databaseSettings;
     _emailMapper = emailMapper;
     _emailAddressService = emailAddressService;
 }
 public AbsBuybackUpdater(IBuybackResultRepository buybackResultRepository, IGSVRepository gsvRepository, IMapToExisting<AbsBuybackResult, GroupSaleVehicle> gsvMapper)
 {
     this.buybackResultRepository = buybackResultRepository;
     this.gsvRepository = gsvRepository;
     this.gsvMapper = gsvMapper;
 }