public void SetByIndexNoEntry()
        {
            var list = new TransactionListTestClass();

            var id = Guid.NewGuid();

            list.Add(id, new Date(2000, 01, 01));
            var id2 = Guid.NewGuid();

            list.Add(id2, new Date(2001, 01, 01));

            Action a = () => list[2] = new TransactionTestClass(id, new Date(2002, 01, 01));

            a.Should().Throw <ArgumentOutOfRangeException>();
        }
        public void SetById()
        {
            var list = new TransactionListTestClass();

            var id = Guid.NewGuid();

            list.Add(id, new Date(2000, 01, 01));
            var id2 = Guid.NewGuid();

            list.Add(id2, new Date(2001, 01, 01));

            list[id] = new TransactionTestClass(id, new Date(2002, 01, 01));

            var entry = list[id];

            entry.Date.Should().Be(new Date(2002, 01, 01));
        }