public void Setup()
 {
     _record = new PrepareLogRecord(0, _corrId, _eventId, 0, "test", 1, new DateTime(2000, 1, 1, 12, 0, 0),
                                    PrepareFlags.None, "Foo", new byte[12], new byte[15]);
     _chunk  = Core.TransactionLog.Chunks.TFChunk.CreateNew(_filename, 4096, 0, 0);
     _result = _chunk.TryAppend(_record);
 }
 public void Setup()
 {
     _record = new PrepareLogRecord(0, _corrId, _eventId, 0, "test", 1, new DateTime(2000, 1, 1, 12, 0, 0),
                                    PrepareFlags.None, "Foo", new byte[12], new byte[15]);
     _chunk = Core.TransactionLog.Chunks.TFChunk.CreateNew(_filename, 4096, 0, 0);
     _result = _chunk.TryAppend(_record);
 }
 public void Setup()
 {
     var record = new PrepareLogRecord(15556, _corrId, _eventId, 15556, "test", 1, new DateTime(2000, 1, 1, 12, 0, 0),
                                       PrepareFlags.None, "Foo", new byte[12], new byte[15]);
     _chunk = Core.TransactionLog.Chunks.TFChunk.CreateNew(filename, 20, 0, 0);
     _written = _chunk.TryAppend(record).Success;
 }
        public void Setup()
        {
            var record = new PrepareLogRecord(15556, _corrId, _eventId, 15556, "test", 1, new DateTime(2000, 1, 1, 12, 0, 0),
                                              PrepareFlags.None, "Foo", new byte[12], new byte[15]);

            _chunk   = Core.TransactionLog.Chunks.TFChunk.CreateNew(filename, 20, 0, 0);
            _written = _chunk.TryAppend(record).Success;
        }
예제 #5
0
 public void append_does_not_throw_exception()
 {
     Assert.DoesNotThrow(() => _chunk.TryAppend(new CommitLogRecord(0, Guid.NewGuid(), 0, DateTime.UtcNow, 0)));
 }