public async Task GetAllRegions()
        {
            // Initialize the database
            await _regionRepository.CreateOrUpdateAsync(_region);

            await _regionRepository.SaveChangesAsync();

            // Get all the regionList
            var response = await _client.GetAsync("/api/regions?sort=id,desc");

            response.StatusCode.Should().Be(HttpStatusCode.OK);

            var json = JToken.Parse(await response.Content.ReadAsStringAsync());

            json.SelectTokens("$.[*].id").Should().Contain(_region.Id);
            json.SelectTokens("$.[*].regionName").Should().Contain(DefaultRegionName);
        }
        public virtual async Task <Region> Save(Region region)
        {
            await _regionRepository.CreateOrUpdateAsync(region);

            await _regionRepository.SaveChangesAsync();

            return(region);
        }