Esempio n. 1
0
        public MunicipalityServiceTests()
        {
            _municipalityRepositoryMock = new Mock <IMunicipalityRepository>();
            _schedulTaxRateFactory      = new ScheduledTaxRateFactory();

            _service = new MunicipalityService(_municipalityRepositoryMock.Object, _schedulTaxRateFactory);
        }
Esempio n. 2
0
 public MunicipalityService(
     IMunicipalityRepository municipalityRepositiory,
     IScheduledTaxRateFactory scheduledTaxRateFactory
     )
 {
     _municipalityRepository  = municipalityRepositiory ?? throw new ArgumentNullException(nameof(municipalityRepositiory));
     _scheduledTaxRateFactory = scheduledTaxRateFactory ?? throw new ArgumentNullException(nameof(scheduledTaxRateFactory));
 }