public async Task UpdateProviderCourseConfirmRegulatedStandard_Success_ReturnsNoContent(
            [Frozen] Mock <IMediator> mediator,
            [Greedy] ProviderCourseEditController sut,
            int ukprn, int larsCode, UpdateApprovedByRegulatorCommand command)
        {
            mediator.Setup(m => m.Send(It.Is <UpdateApprovedByRegulatorCommand>(c => c.Ukprn == ukprn && c.LarsCode == larsCode), It.IsAny <CancellationToken>())).ReturnsAsync(Unit.Value);

            var result = await sut.UpdateProviderCourseApprovedByRegulator(ukprn, larsCode, command);

            (result as NoContentResult).Should().NotBeNull();
        }
        public async Task UpdateProviderCourseConfirmRegulatedStandard_Failed_ReturnsRespectiveStatusCode(
            [Frozen] Mock <IMediator> mediator,
            [Greedy] ProviderCourseEditController sut,
            int ukprn, int larsCode, UpdateApprovedByRegulatorCommand command)
        {
            mediator.Setup(m => m.Send(It.Is <UpdateApprovedByRegulatorCommand>(c => c.Ukprn == ukprn && c.LarsCode == larsCode), It.IsAny <CancellationToken>())).ThrowsAsync(new HttpRequestContentException("some error", HttpStatusCode.BadRequest));

            var result = await sut.UpdateProviderCourseApprovedByRegulator(ukprn, larsCode, command);

            var statusCodeResult = result as StatusCodeResult;

            statusCodeResult.Should().NotBeNull();
            statusCodeResult.StatusCode.Should().Be((int)HttpStatusCode.BadRequest);
        }