Exemplo n.º 1
0
        public async Task Should_Not_Record_Anything_When_NoRecord_Is_Used()
        {
            await _geoApi2.GetRegions();

            (await _cache2.GetAsync(KeyGetAllRegions)).Should().BeNull("The cache should be empty, because [NoRecord] is used.");
        }
Exemplo n.º 2
0
 public async Task <ActionResult <IEnumerable <Region> > > GetRegion()
 {
     return(await _geoApi.GetRegions());
 }