Ejemplo n.º 1
0
 public SwapiApiHelper(string url)
 {
     this.HttpClient = new HttpClient {
         BaseAddress = new Uri(url)
     };
     this.endpointHelper = new SwapiEndpointHelper();
 }
Ejemplo n.º 2
0
        public void ClassInitialize()
        {
            serviceUrl = "https://swapi.co/";

            if (this.SwapiApiHelper == null && this.SwapiEndpointHelper == null)
            {
                this.SwapiApiHelper      = new SwapiApiHelper(this.serviceUrl);
                this.SwapiEndpointHelper = new SwapiEndpointHelper();
            }
        }