Example #1
0
        public void Init()
        {
            const string credentialsFilePath = @"..\..\Files\ReverbCredentials.csv";

            var cc         = new CsvContext();
            var testConfig =
                cc.Read <TestConfig>(credentialsFilePath, new CsvFileDescription {
                FirstLineHasColumnNames = true
            }).FirstOrDefault();

            if (testConfig != null)
            {
                this.ReverbFactory = new ReverbFactory(testConfig.NLogin, testConfig.NPassword, "https://sandbox.reverb.com");
                this.Config        = new ReverbConfig(testConfig.Token);
            }
        }
        public ReverbOrdersService(ReverbConfig config)
        {
            Condition.Requires(config, "config").IsNotNull();

            this._webRequestServices = new WebRequestServices(config);
        }
 public WebRequestServices(ReverbConfig config)
 {
     this._config = config;
     this._host   = config.NativeHost;
 }
Example #4
0
 public IReverbOrdersService CreateOrdersService(ReverbConfig config)
 {
     config.AddConfigParams(this.Login, this.Password, this.Host);
     return(new ReverbOrdersService(config));
 }