Example #1
0
        public MivaCommand(MivaConfig config, MivaRequest payload)
        {
            Condition.Requires(config, "config").IsNotNull();
            Condition.Requires(payload, "payload").IsNotNull();

            this.Config  = config;
            this.Payload = payload;
            this.Url     = config.ApiBaseUrl;
        }
Example #2
0
        public BaseTest()
        {
            var testCredentials = this.LoadTestSettings <TestCredentials>(@"\..\..\credentials.csv");

            this.Config = new MivaConfig(new MivaCredentials(testCredentials.StoreUrl, testCredentials.StoreCode, testCredentials.AccessToken, testCredentials.PrivateKey, testCredentials.RootDirectory));
        }
 public MivaProductsService(MivaConfig config) : base(config)
 {
 }
Example #4
0
 public MivaOrdersService(MivaConfig config) : base(config)
 {
 }
Example #5
0
 public IMivaOrdersService CreateOrdersService(MivaConfig config)
 {
     return(new MivaOrdersService(config));
 }
Example #6
0
 public IMivaProductsService CreateProductsService(MivaConfig config)
 {
     return(new MivaProductsService(config));
 }