コード例 #1
0
        public IEnumerable <WeatherForecast> Get()
        {
            //executa chamada em backgroud
            BackgroundJob.Enqueue(() => Loop());

            var x = _userService.GetUserList();

            var rng = new Random();

            return(Enumerable.Range(1, 5).Select(index => new WeatherForecast
            {
                Date = DateTime.Now.AddDays(index),
                TemperatureC = rng.Next(-20, 55),
                Summary = Summaries[rng.Next(Summaries.Length)]
            })
                   .ToArray());
        }
コード例 #2
0
        public void LoadUsersTest()
        {
            var result = userServices.GetUserList();

            Assert.True(result.Any());
        }