Example #1
0
        protected override void Context()
        {
            base.Context();

            this._storeEvents = Wireup.Init().UsingInMemoryPersistence().Build();
            this._repository1 = new EventStoreRepository(this._storeEvents, new AggregateFactory(), new ConflictDetector());
            this._repository2 = new EventStoreRepository(this._storeEvents, new AggregateFactory(), new ConflictDetector());

            _aggregateId = Guid.NewGuid();
            var aggregate = new TestAggregate(_aggregateId, "my name is..");

            _repository1.Save(aggregate, Guid.NewGuid());
        }
 protected override void Context()
 {
     base.Context();
     _id = Guid.NewGuid();
     _testAggregate = new TestAggregate(_id, "Test");
 }
        protected override void Context()
        {
            base.Context();

            _storeEvents = Wireup.Init().UsingInMemoryPersistence().Build();
            _repository1 = new EventStoreRepository(_storeEvents, new AggregateFactory(), new ConflictDetector());
            _repository2 = new EventStoreRepository(_storeEvents, new AggregateFactory(), new ConflictDetector());

            _aggregateId = Guid.NewGuid();
            var aggregate = new TestAggregate(_aggregateId, "my name is..");
            _repository1.Save(aggregate, Guid.NewGuid());
        }
 protected override void Context()
 {
     this._testAggregate = new TestAggregate(Guid.NewGuid(), "Test");
 }
 protected override void Because()
 {
     this._testAggregate = new TestAggregate(Guid.NewGuid(), "Test");
 }
Example #6
0
 protected override void Context()
 {
     base.Context();
     _id            = Guid.NewGuid();
     _testAggregate = new TestAggregate(_id, "Test");
 }
 protected override void Context()
 {
     _testAggregate = new TestAggregate(Guid.NewGuid(), "Test");
 }
 protected override void Because()
 {
     _testAggregate = new TestAggregate(Guid.NewGuid(), "Test");
 }