Ejemplo n.º 1
0
        public void WeatherForecastsTest()
        {
            var endpoint = new BlazorJsonServerInfo();

            var sampleDataClient = endpoint.Provider.GetService <ISampleDataClient>();
            var forecasts        = sampleDataClient.WeatherForecasts();


            Assert.IsTrue(forecasts.Count() == 5);
        }
Ejemplo n.º 2
0
        public async Task WeatherForecastsTest()
        {
            using (var endpoint = new BlazorJsonServerInfo())
            {
                var sampleDataClient = endpoint.Provider.GetService <IWeatherForecastClient>();
                var forecasts        = await sampleDataClient.GetAsync();


                Assert.True(forecasts.Count() == 5);
            }
        }