public async void ShouldNotifyJobWorkCorrectly()
        {
            var type    = typeof(Person);
            var builder = new HangfirePersistenceJobsBuilder();

            await builder.Jobs.Notify(type, new Guid("AC941F5E-91C8-4200-8C42-92CB89696517"), 2);

            builder.EventProjectorMock.Verify(x => x.Notify(new Guid("AC941F5E-91C8-4200-8C42-92CB89696517"), 2));
            builder.EventProjectorMock.VerifyNoOtherCalls();
        }
        public async void ShouldCatchUpJobWorkCorrectly()
        {
            var aggregateRootTypesAmount = AppDomain.CurrentDomain.GetAssemblies()
                                           .Where(x => !x.IsDynamic)
                                           .SelectMany(x => x.ExportedTypes)
                                           .Where(x => x.IsClass)
                                           .Count(x => x.BaseType == typeof(AggregateRoot));
            var builder = new HangfirePersistenceJobsBuilder();

            await builder.Jobs.CatchUp();

            builder.EventProjectorMock.Verify(x => x.CatchUp(), Times.Exactly(aggregateRootTypesAmount));
            builder.EventProjectorMock.VerifyNoOtherCalls();
        }