public async Task DiffTestMissingOne() { var context = await GetTestDBContext(); var controller = new DiffController(context); var result = controller.GetDataModel(1).Result.Result; Assert.IsInstanceOfType(result, typeof(NotFoundResult)); var putResult = controller.PutDataModelRight(1, new BaseData() { Data = "AAAAAA==" }).Result; Assert.IsInstanceOfType(putResult, typeof(CreatedAtActionResult)); var equalResult = await controller.GetDataModel(1); Assert.IsInstanceOfType(equalResult.Result, typeof(OkObjectResult)); // And so on }