Exemplo n.º 1
0
        public static async Task <List <CountryApiModel> > GetAllCountry()
        {
            try
            {
                var apiClient      = new ApiClient(HttpClientInstance.Instance);
                var _countryClient = new CountryClient(apiClient);
                var response       = await _countryClient.GetAllCountry();

                return(response);
            }
            catch (Exception ex)
            {
                return(null);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Cart controller constructor
 /// </summary>
 /// <param name="catalogClient">Catalog client used to access catalog repository methods through caching and other helpers</param>
 /// <param name="countryClient">Allows to get countries from repository through caching</param>
 public CartController(CatalogClient catalogClient, CountryClient countryClient)
 {
     _catalogClient = catalogClient;
     _countryClient = countryClient;
 }
Exemplo n.º 3
0
 public void OneTimeSetUp()
 {
     InitDokladApi();
     _client = DokladApi.CountryClient;
 }