public void Update() { InitializeDataBase(); Curso curso = new Curso() { Id = 3, Descricao = "Curso JavaScript", DataInicio = DateTime.ParseExact("05/19/2021", "d", CultureInfo.InvariantCulture), DataTermino = DateTime.ParseExact("06/19/2021", "d", CultureInfo.InvariantCulture), QtdAlunos = 40 }; using (var context = new ApplicationContext(options)) { CursoController cursoController = new CursoController(context); Curso c = cursoController.PutCurso(3, curso).Result.Value; Assert.Equal("Curso JavaScript", c.Descricao); } }