public async Task Handle_WhenHandlingAddInvitationCommand_ThenShouldReturnReference(
            ProviderRegistrationsDbContext confirmationContext,
            AddInvitationCommandHandler handler,
            AddInvitationCommand command)
        {
            //arrange

            //act
            var result = await handler.Handle(command, new CancellationToken());

            //assert
            confirmationContext.Invitations.Should().ContainEquivalentOf(new { Reference = Guid.Parse(result) });
        }
        public async Task Handle_WhenHandlingAddInvitationCommand_ThenShouldAddInvitation(
            ProviderRegistrationsDbContext confirmationContext,
            AddInvitationCommandHandler handler,
            AddInvitationCommand command)
        {
            //arrange

            //act
            var result = await handler.Handle(command, new CancellationToken());

            //assert
            var invitation = confirmationContext.Invitations.First(f => f.Reference.ToString() == result);

            invitation.Should().BeEquivalentTo(new
            {
                command.Ukprn,
                command.UserRef,
                command.EmployerFirstName,
                command.EmployerLastName,
                command.EmployerEmail,
                command.EmployerOrganisation
            });
        }