Beispiel #1
0
        public static IBasketAPI BasketAPIClient(Action <BasketOptions> configuration)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException("Missing Configuration");
            }
            BasketOptions settings = new BasketOptions();

            configuration(settings);

            return(new BasketAPI(settings));
        }
Beispiel #2
0
 public BasketAPI(BasketOptions configure)
 {
     Url     = configure.Url;
     baseUri = new Uri(Url);
 }