Пример #1
0
        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());
        }
Пример #2
0
 public EventStoreIntegrationContext(PassThroughValidator validator)
 {
     this.validator   = validator;
     DateTimeProvider = new TestDateTimeProvider();
 }