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); }
protected override void Event() { _returnedAggregate = _unitOfWork.Get<AggregateStringStub, string>(BucketSupport.DefaultBucketId, _id.ToString()); }
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); }
protected override void Event() { _returnedAggregate = _unitOfWork.Get <AggregateStringStub, string>(BucketSupport.DefaultBucketId, _id.ToString()); _returnedAggregate = _unitOfWork.Get <AggregateStringStub, string>(BucketSupport.DefaultBucketId, _id.ToString()); }