CQRSlite.Tests.Cache.When_saving_aggregate.When_saving_aggregate C# (CSharp) Method

When_saving_aggregate() public method

public When_saving_aggregate ( ) : System
return System
        public When_saving_aggregate()
        {
            _testRep = new TestRepository();
            _rep = new CacheRepository(_testRep, new TestInMemoryEventStore(), new MemoryCache());
            _aggregate = _testRep.Get<TestAggregate>(Guid.NewGuid());
            _aggregate.DoSomething();
            _rep.Save(_aggregate, -1);
        }