public void TestGetWithoutIdentityMapping()
        {
            var unitOfWorkContext = new UnitOfWorkContext()
            {
                IdentityMappingActive = false
            };

            var genericRepositoryTestA1 = new GenericRepositoryTest <DbEntityA>(unitOfWorkContext);

            var ent1 = genericRepositoryTestA1.GetById(1);
            var ent2 = genericRepositoryTestA1.GetById(1);

            Assert.AreNotEqual(ent1, ent2);
        }
        public void TestGetWithIdentityMapping()
        {
            var unitOfWorkContext = new UnitOfWorkContext()
            {
                IdentityMappingActive      = true,
                IdentityMappingRecordLimit = 2
            };

            var genericRepositoryTestA1 = new GenericRepositoryTest <DbEntityA>(unitOfWorkContext);

            var ent1 = genericRepositoryTestA1.GetById(1);
            var ent2 = genericRepositoryTestA1.GetById(1);

            Assert.AreEqual(ent1, ent2);
        }