public void CountryDelegatesAddedTaxesToInjectedTaxesService() { // expectations var pstTax = new Tax("PST", DateTime.Today, DateTime.Today.AddMonths(6), JurisdictionEnum.Country, 5); _mockTaxesService.AddTax(pstTax); _mockRepository.ReplayAll(); var country = new Country("MB", _mockTaxesService); country.AddTax(pstTax); }
public void Setup() { _mockRepository = new MockRepository(); _mockTaxesService = _mockRepository.Stub<ITaxesService>(); _city = new City("CityTax", _mockTaxesService); var cityTax = new Tax("CityTax", DateTime.Today, DateTime.Today.AddMonths(6), JurisdictionEnum.City, 2); _mockTaxesService.Taxes.Add(cityTax); _provinceState = new ProvinceState("ProvStateTax", _mockTaxesService); var provStateTax = new Tax("ProvStateTax", DateTime.Today, DateTime.Today.AddMonths(6), JurisdictionEnum.ProvinceState, 3); _mockTaxesService.Taxes.Add(provStateTax); _country = new Country("CountryTax", _mockTaxesService); var countryTax = new Tax("CountryTax", DateTime.Today, DateTime.Today.AddMonths(6), JurisdictionEnum.Country, 4); _mockTaxesService.Taxes.Add(countryTax); }