public EventStoreIntegrationContext(PassThroughValidator validator) { var configuration = Configuration.Begin() .WithDefaultCollection() .WithDefaultStateFactory() .NeverUseThreadSafe() .WithNoEventPublisher() .WithAnyAppliersFrom(Assembly.GetExecutingAssembly()) .AndNoMoreAppliers() .WithNoUpconverters() .Build(); repository = new EventStoreRepository <string, IHoldHigherOrder>(validator, configuration, GetConnection()); readOnlyRepository = new EventStoreReadOnlyRepository <string, IHoldHigherOrder>(configuration, GetConnection()); }
public EventStoreIntegrationContext(PassThroughValidator validator) { this.validator = validator; DateTimeProvider = new TestDateTimeProvider(); }