public void Saving_Item_Has_Id_Of_1()
        {
            var item = new StubInt32Entity {
                Name = "Testing"
            };

            _db.GetCollection <StubInt32Entity>("testEntities").Save(item);

            Assert.AreEqual(1, item.Id);
        }
        public void When_Saving_2_Items_Second_Item_Has_Id_Of_2()
        {
            var item1 = new StubInt32Entity {
                Name = "Testing"
            };
            var item2 = new StubInt32Entity {
                Name = "Testing 2"
            };

            _db.GetCollection <StubInt32Entity>("testEntities").Save(item1);
            _db.GetCollection <StubInt32Entity>("testEntities").Save(item2);

            Assert.AreEqual(2, item2.Id);
        }