public void WhenApprenticeshipIsNotFound(
            long accountId,
            long apprenticeshipId,
            [Frozen] Mock <IInternalApiClient <CommitmentsV2Configuration> > client)
        {
            var sut = new CommitmentsV2Service(client.Object);

            sut.Invoking((s) => s.GetApprenticeshipDetails(accountId, apprenticeshipId)).Should().Throw <HttpRequestContentException>();
        }
        public void WhenApprenticeshipIsNotFound(
            long accountId,
            long apprenticeshipId,
            [Frozen] Mock <IInternalApiClient <CommitmentsV2Configuration> > client)
        {
            client
            .Setup(x =>
                   x.GetWithResponseCode <Apis.CommitmentsV2InnerApi.ApprenticeshipResponse>(
                       It.IsAny <Apis.CommitmentsV2InnerApi.GetApprenticeshipDetailsRequest>()))
            .ReturnsAsync(new ApiResponse <Apis.CommitmentsV2InnerApi.ApprenticeshipResponse>(
                              null, HttpStatusCode.NotFound, ""));
            var sut = new CommitmentsV2Service(client.Object);

            sut.Invoking((s) => s.GetApprenticeshipDetails(accountId, apprenticeshipId)).Should().Throw <HttpRequestContentException>();
        }