public void If_Api_Call_Unsuccesful_Should_Log_Error()
        {
            //Arrange
            var fixture = new ApprenticeshipCompletedEventTestsFixture().SetGetApprenticeshipService().SetCommitmentsApiModelException();

            //Act
            fixture.RunEventWithCommitmentsApiModelException();

            //Assert
            fixture.VerifyCommitmentsApiModelExceptionExceptionLogged();
        }
        public async Task If_Apprenticeship_NotExists_Then_CreateRecord()
        {
            //Arrange
            var fixture = new ApprenticeshipCompletedEventTestsFixture().SetGetApprenticeshipService();

            //Act
            await fixture.Run();

            //Assert
            fixture.AssertRecordCreated();
        }
        public void If_Event_Errors_Should_Log_Error()
        {
            //Arrange
            var fixture = new ApprenticeshipCompletedEventTestsFixture().SetGetApprenticeshipService().SetException();

            //Act
            fixture.RunEventWithException();

            //Assert
            fixture.VerifyExceptionLogged();
        }
        public async Task Then_Update_Status()
        {
            //Arrange
            var fixture = new ApprenticeshipCompletedEventTestsFixture();

            //Act
            await fixture.Run();

            //Assert
            fixture.AssertStatus();
        }