public async Task GetDetails_ShouldReturnBadRequest_WhenIdIsNotProvided() { var result = await _controller.Detail(null, CancellationToken.None); Assert.IsInstanceOf <BadRequestObjectResult>(result); Assert.AreEqual("id", ((BadRequestObjectResult)result).Value); }