public void CurrenciesEndpointStatus() { //Arrange _currencyApi = new CurrencyApi("currencies"); //Assert Assert.That(_currencyApi.GetCurrencies().StatusDescription, Is.EqualTo("OK")); }
public void PolishCurrencyVisibility() { //Arrange _currencyApi = new CurrencyApi("currencies"); //Assert Assert.That(_currencyApi.GetCurrencies().Content, Contains.Substring("PLN")); }
public void GetRatesBase() { //Arrange _currencyApi = new CurrencyApi("rates"); //Assert Assert.That(_currencyApi.GetRates().Base, Is.EqualTo("USD")); }
public void Countries_WhenDoesntSuppliedCredentials_ReturnsCountries(WireDataFormat format) { //arrange var client = TestContext.CreateClientNoCredentials(format); var currencyResources = new CurrencyApi(client.HttpChannel); //act var result = currencyResources.ValidCurrencyCodes(); //assert CollectionAssert.IsNotEmpty(result); }
public CouponBase() { _UserApi = new UserAPI(); _CouponApi = new CouponApi(); _ContentApi = new ContentAPI(); _SiteApi = new SiteAPI(); _CurrencyApi = new CurrencyApi(); m_refMsg = m_refContentApi.EkMsgRef; this.IsAdmin = _ContentApi.IsAdmin(); this.IsCommerceAdmin = _UserApi.EkUserRef.IsARoleMember_CommerceAdmin(); this.SitePath = _ContentApi.SitePath.TrimEnd(new char[] { '/' }); this.ApplicationPath = _SiteApi.ApplicationPath.TrimEnd(new char[] { '/' }); }
public CouponUserControlBase() { _UserApi = new UserAPI(); _CouponApi = new CouponApi(); _ContentApi = new ContentAPI(); _SiteApi = new SiteAPI(); _CurrencyApi = new CurrencyApi(); this.SitePath = _ContentApi.SitePath.TrimEnd(new char[] { '/' }); this.ApplicationPath = _SiteApi.ApplicationPath.TrimEnd(new char[] { '/' }); this.IsAdmin = _ContentApi.IsAdmin(); this.IsCommerceAdmin = _UserApi.EkUserRef.IsARoleMember_CommerceAdmin(); //check permissions - both admin and commerce admin can edit this.IsEditable = (this.IsCommerceAdmin == true || this.IsAdmin == true) ? true : false; }
protected override void OnStartup(StartupEventArgs e) { try { var loggingService = new LoggingService(); var currencyApi = new CurrencyApi(loggingService); var scrapperProvider = new ScrapperProvider(loggingService, currencyApi); MainWindow = new MainView(loggingService, scrapperProvider); MainWindow.Closed += MainWindowClosed; MainWindow.Show(); base.OnStartup(e); } catch (Exception ex) { new LoggingService().LogException(ex, "Unhandled exception while starting the app up"); } }
public FarolDrillsScrapingService(LoggingService loggingService, CurrencyApi currencyApi) { _loggingService = loggingService; _currencyApi = currencyApi; }
public FarolStrawSpreadersFeedersScrapingService(LoggingService loggingService, CurrencyApi currencyApi) { _loggingService = loggingService; _currencyApi = currencyApi; }
public BlocketScrapingService(LoggingService loggingService, CurrencyApi currencyApi) { _loggingService = loggingService; _currencyApi = currencyApi; }
public FarolCombinesForagersScrapingService(LoggingService loggingService, CurrencyApi currencyApi) { _loggingService = loggingService; _currencyApi = currencyApi; }
public MaskinbladetScrapingService(LoggingService loggingService, CurrencyApi currencyApi) { _loggingService = loggingService; _currencyApi = currencyApi; }
public MascusScrapingService(LoggingService loggingService, CurrencyApi currencyApi) { _loggingService = loggingService; _currencyApi = currencyApi; }
public LandwirtScrapingService(LoggingService loggingService, CurrencyApi currencyApi) { _loggingService = loggingService; _currencyApi = currencyApi; }
public FarolForkliftsTelehandlersScrapingService(LoggingService loggingService, CurrencyApi currencyApi) { _loggingService = loggingService; _currencyApi = currencyApi; }
public FarolTractorScrapingService(LoggingService loggingService, CurrencyApi currencyApi) { _loggingService = loggingService; _currencyApi = currencyApi; }
protected override void Page_Load(object sender, System.EventArgs e) { try { base.Page_Load(sender, e); orderApi = new OrderApi(); Util_RegisterResources(); defaultCurrency = (new CurrencyApi()).GetItem(m_refContentApi.RequestInformationRef.CommerceSettings.DefaultCurrencyId); System.Web.HttpCookie siteCookie = CommonApi.GetEcmCookie(); if (siteCookie["SiteCurrency"] != defaultCurrency.Id.ToString()) { defaultCurrency.Id = Convert.ToInt32(siteCookie["SiteCurrency"]); CurrencyApi m_refCurrencyApi = new CurrencyApi(); defaultCurrency = m_refCurrencyApi.GetItem(defaultCurrency.Id); } m_refMsg = m_refContentApi.EkMsgRef; CustomerManager = new Customer(m_refContentApi.RequestInformationRef); Util_CheckAccess(); if (!string.IsNullOrEmpty(Request.QueryString["folder"])) { m_FolderId = Convert.ToInt64(Request.QueryString["folder"]); } Display_Commerce(); Util_SetLabels(); } catch (Exception ex) { Utilities.ShowError(ex.Message); } }
public FarolCultivationPloughsScrapingService(LoggingService loggingService, CurrencyApi currencyApi) { _loggingService = loggingService; _currencyApi = currencyApi; }