public void FactoryCanNotBeNull() { Assert.Throws<ArgumentNullException>( () => new AsyncRepository<AggregateRootEntityStub>( null, new ConcurrentUnitOfWork(), EmbeddedEventStore.Connection, EventReaderConfigurationFactory.Create())); }