Example #1
0
        public async Task ShouldGetTermAtIndex()
        {
            var log = new InMemoryLog();
            await log.Apply(new LogEntry(new FakeCommand("test"), typeof(string), 1));

            log.GetTermAtIndex(1).Result.ShouldBe(1);
        }
Example #2
0
        public void ShouldGetTermAtIndex()
        {
            var log = new InMemoryLog();

            log.Apply(new LogEntry(new FakeCommand("test"), typeof(string), 1));
            log.GetTermAtIndex(1).ShouldBe(1);
        }