public async Task ThenANoContentCodeIsReturnedOnSuccess() { var result = await _controller.PutApprenticeshipStopDate( TestProviderId, TestApprenticeshipId, TestCommitmentId, new ApprenticeshipStopDate { NewStopDate = DateTime.Today }); result.Should().BeOfType <StatusCodeResult>(); (result as StatusCodeResult).StatusCode.Should().Be(HttpStatusCode.NoContent); }