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

            //Act
            fixture.RunEventWithCommitmentsApiModelException();

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

            //Act
            await fixture.Run();

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

            //Act
            fixture.RunEventWithException();

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

            //Act
            await fixture.Run();

            //Assert
            fixture.AssertStatus();
        }