Пример #1
0
        public async Task Add_User_Level_Ok()
        {
            var result = await _userLevelRepository.SaveUserLevel(new UserLevelModel()
            {
                Name   = "Paulo Maestro",
                Active = false
            });

            Assert.True(result);
        }
        public IEnumerable <WeatherForecast> Get()
        {
            _iUserLevelRepository.SaveUserLevel(new Model.UserLevelModel()
            {
                Active = true
            });
            _iUserLevelRepository.DeleteUserLevel(1);

            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());
        }