public async Task Put_ShouldUpdateIdea() { var idea = new IdeaModel { content = "Idea 2 edited", impact = 6, ease = 7, confidence = 8 }; // Arrange Functions.AddMockIdentityToContext(_ideasController, "*****@*****.**"); // Act var result = await _ideasController.Put("ghijkl", idea); // Assert Assert.NotNull(result); var okResult = result as OkObjectResult; Assert.NotNull(okResult); Assert.Equal(200, okResult.StatusCode); }