public void Init()
        {
            this._f            = new Fixture();
            this._originalView = new TestEntity(this._f.Create <string>());
            this._key          = new TestKey(this._f.Create <byte>());

            var strategy = new DocumentStrategy();
            var storage  = new ConcurrentDictionary <string, byte[]>();

            this._memWriter = new MemoryDocumentReaderWriter <TestKey, TestEntity>(strategy, storage);
            this._writer    = new BufferedDocumentWriter <TestKey, TestEntity>(this._memWriter, this._memWriter, strategy);
        }
 private TestKey NewKey()
 {
     return(TestKey.From(this._key));
 }
 public static TestKey From(TestKey otherKey)
 {
     return(new TestKey(otherKey.Key));
 }