public PropertyDetailService(IPropertyDetailRepository propertyDetailRepository, IReferenceGenerator referenceGenerator)
        {
            Check.If(propertyDetailRepository).IsNotNull();
            Check.If(referenceGenerator).IsNotNull();

            _propertyDetailRepository = propertyDetailRepository;
            _referenceGenerator = referenceGenerator;
        }
 public PropertyDetailService(IPropertyDetailRepository propertyDetailRepository)
 {
     _propertyDetailRepository = propertyDetailRepository;
 }
        public void Setup()
        {
            _mockDbSettings.Setup(x => x.ConnectionString).Returns("TestConectionString");
            _mockContext.Setup(x => x.Properties).Returns(_mockDbSet.Object);
            _mockContext.Setup(x => x.SaveChanges()).Returns(1);
            _mockPropertyDetailMapper.Setup(x => x.Map(It.IsAny<PropertyDetail>(), It.IsAny<PropertyDetail>()))
                .Returns(true);

            _propertyDetailRepository = new PropertyDetailRepository(_mockContext.Object, _mockPropertyDetailMapper.Object);
        }