Example #1
0
            protected override void Context()
            {
                _unitOfWork = new UnitOfWork(_commandContextProvider.Object, _eventSourceMapper.Object);
                _aggregate  = new AggregateStringStub(_id);

                _commandContextProvider.Setup(p => p.Get()).Returns(_commandContext);
                _eventSourceMapper.Setup(m => m.Get <AggregateStringStub, string>(BucketSupport.DefaultBucketId, _id.ToString(), int.MaxValue)).Returns(_aggregate);
            }
Example #2
0
 protected override void Event()
 {
     _returnedAggregate = _unitOfWork.Get<AggregateStringStub, string>(BucketSupport.DefaultBucketId, _id.ToString());
 }
Example #3
0
            protected override void Context()
            {
                _unitOfWork = new UnitOfWork(_commandContextProvider.Object, _eventSourceMapper.Object);
                _aggregate = new AggregateStringStub(_id);

                _commandContextProvider.Setup(p => p.Get()).Returns(_commandContext);
                _eventSourceMapper.Setup(m => m.Get<AggregateStringStub, string>(BucketSupport.DefaultBucketId, _id.ToString(), int.MaxValue)).Returns(_aggregate);
            }
Example #4
0
 protected override void Event()
 {
     _returnedAggregate = _unitOfWork.Get <AggregateStringStub, string>(BucketSupport.DefaultBucketId, _id.ToString());
     _returnedAggregate = _unitOfWork.Get <AggregateStringStub, string>(BucketSupport.DefaultBucketId, _id.ToString());
 }