public async Task EditSurveyAsync_ReturnOkResult() { var id = 5; _mockMyDbContext.Setup( db => db.EditSurveyAsync(id, new Survey())).Returns(Task.CompletedTask); var surveysController = new SurveysController(_mockMyDbContext.Object); var result = await surveysController.PutSurveyAsync(id, new Survey { Id = id }); Assert.True(result is OkResult); }