Exemplo n.º 1
0
        public async Task LoadCountry_PassedBr_LoadsBrazil()
        {
            // Arrange
            var deserializerService  = new Web.Services.DeserializerService();
            var worldBankDataService = new Web.Services.WorldBankDataService(deserializerService);

            // Act
            var country = await worldBankDataService.LoadCountry("br");

            // Assert
            Assert.AreEqual("Brazil", country.Name);
        }
Exemplo n.º 2
0
        public async Task LoadCountry_PassedUs_LoadsNorthAmerica()
        {
            // Arrange
            var deserializerService  = new Web.Services.DeserializerService();
            var worldBankDataService = new Web.Services.WorldBankDataService(deserializerService);

            // Act
            var country = await worldBankDataService.LoadCountry("us");

            // Assert
            Assert.AreEqual("United States", country.Name);
        }