Esempio n. 1
0
 public BreezeController(ICommunitiesService communities, IProposalService proposals,
                         IInvitationService invitations, ITaxesService taxes)
 {
     this.communities = communities;
     this.proposals   = proposals;
     this.invitations = invitations;
     this.taxes       = taxes;
 }
        public TaxesPresenter(ITaxesService taxesService, ITaxesView taxesView)
        {
            _taxesService = taxesService;
            _taxesView    = taxesView;

            _taxesView.ShowTaxes += new System.EventHandler(TaxesViewShowTaxes);
            _taxesView.AddTax    += new System.EventHandler(TaxesViewAddTax);
        }
 public BreezeController(ICommunitiesService communities, IProposalService proposals,
     IInvitationService invitations, ITaxesService taxes)
 {
     this.communities = communities;
     this.proposals = proposals;
     this.invitations = invitations;
     this.taxes = taxes;
 }
Esempio n. 4
0
 public ManageTaxesController(ITaxesService taxesService,
                              ITaxModelFactory taxModelFactory,
                              ILocalizationService localizationService,
                              ILocalizedEntityService localizedEntityService)
 {
     _taxesService           = taxesService;
     _taxModelFactory        = taxModelFactory;
     _localizationService    = localizationService;
     _localizedEntityService = localizedEntityService;
 }
Esempio n. 5
0
        public TaxesServiceTests()
        {
            var config = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile <MapperProfile>();
            });
            var mapper = config.CreateMapper();

            _taxPeriodService = new Mock <ITaxPeriodService>();
            _taxesRepository  = new Mock <ITaxesRepository>();
            _taxesService     = new TaxesService(_taxesRepository.Object, _taxPeriodService.Object, mapper);
        }
        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);
        }
Esempio n. 7
0
 public InvoiceService(AppDbContext dbContext,
                       IWorkContext workContext,
                       IUsersService usersService,
                       IUserGroupsService userGroupsService,
                       IProductService productService,
                       IProductCheckoutAttributesService productCheckoutAttributesService,
                       ITaxesService taxesService,
                       IPluginFinder pluginFinder,
                       ILicenseManager licenseManager,
                       ISettingService settingService,
                       IEventPublisher eventPublisher)
 {
     _dbContext         = dbContext;
     _workContext       = workContext;
     _usersService      = usersService;
     _userGroupsService = userGroupsService;
     _productService    = productService;
     _productCheckoutAttributesService = productCheckoutAttributesService;
     _taxesService   = taxesService;
     _pluginFinder   = pluginFinder;
     _licenseManager = licenseManager;
     _settingService = settingService;
     _eventPublisher = eventPublisher;
 }
Esempio n. 8
0
 public City(string name, ITaxesService taxesService)
 {
     _name = name;
     _taxesService = taxesService;
 }
Esempio n. 9
0
 public City(string name, ITaxesService taxesService)
 {
     _name         = name;
     _taxesService = taxesService;
 }
 public TaxesController(ILogger <TaxesController> logger, ITaxesService taxesService)
 {
     _logger       = logger;
     _taxesService = taxesService;
 }
 public Invoice(ITaxesService taxesService)
 {
     _taxesService = taxesService;
     _invoiceItems = new List <InvoiceItem>();
 }
 public ProvinceState(string name, ITaxesService taxesService)
 {
     _taxesService = taxesService;
 }
 public TaxesController(ITaxesService taxes)
 {
     this.taxes = taxes;
     // this.currentCommunityId = ;
 }
 public TaxesController(ITaxesService taxesService)
 {
     _taxesService = taxesService;
 }
 public void SetUp()
 {
     _mockRepository = new MockRepository();
     _mockTaxesService = _mockRepository.StrictMock<ITaxesService>();
 }
Esempio n. 16
0
 public TaxesController(TaxesContext context, ITaxesService businessService, IMapper mapper)
 {
     _context         = context;
     _businessService = businessService;
     _mapper          = mapper;
 }
Esempio n. 17
0
 public TaxesController(ITaxesService service)
 {
     _service = service;
 }
 public DataFromFileController(ITaxesService taxesService)
 {
     _taxesService = taxesService;
 }
Esempio n. 19
0
 public TaxesController(ITaxesService taxesService, IMapper mapper)
 {
     _taxesService = taxesService;
     _mapper       = mapper;
 }
 public Country(string name, ITaxesService taxesService)
 {
     _taxesService = taxesService;
 }
Esempio n. 21
0
 public Invoice(ITaxesService taxesService)
 {
     _taxesService = taxesService;
     _invoiceItems = new List<InvoiceItem>();
 }
Esempio n. 22
0
 public BasketService(IProductService productService, ITaxesService taxesService)
 {
     _productService = productService;
     _taxesService   = taxesService;
 }
Esempio n. 23
0
 public TaxesController(ITaxesService taxes)
 {
     this.taxes = taxes;
 }
Esempio n. 24
0
 public TaxesBulkInsertController(ITaxesService businessService)
 {
     _businessService = businessService;
 }
        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);
        }
 public void SetUp()
 {
     _mockRepository   = new MockRepository();
     _mockTaxesService = _mockRepository.StrictMock <ITaxesService>();
 }
Esempio n. 27
0
 public BasketController(ITaxesService taxesService, IBasketService basketService)
 {
     _taxesService  = taxesService;
     _basketService = basketService;
 }
Esempio n. 28
0
 public Country(string name, ITaxesService taxesService)
 {
     _taxesService = taxesService;
 }
 public TaxesController(ITaxesService taxes)
 {
     this.taxes = taxes;
 }
Esempio n. 30
0
 public TaxesRatioService(ITaxesService taxesService)
 {
     _taxesService = taxesService;
 }