public async Task ShouldCreateACandidateAsync() { var controller = new CandidateController(); var candidate = new CandidateBuilder().DataBuilder().Build(); var result = await controller.PostCandidate(candidate); var candidateCreated = await Context.Candidates.FindAsync(result); Assert.IsNotNull(candidateCreated); Assert.AreEqual("Nome Teste", candidateCreated.Name); }