Exemplo n.º 1
0
        public void CachingRepository_TypiconEntity()
        {
            var uof           = CachingUOFFactory.Create();
            var typiconEntity = uof.Repository <TypiconEntity>().Get(c => c.Id == 1);

            typiconEntity = uof.Repository <TypiconEntity>().Get(c => c.Name == "Типикон");

            Assert.IsNotNull(typiconEntity);
        }
Exemplo n.º 2
0
        public void CachingRepository_MenologyDay()
        {
            var uof = CachingUOFFactory.Create();

            var items = uof.Repository <MenologyDay>().GetAll(c => c.Id < 200);

            var items2 = uof.Repository <MenologyDay>().GetAll(c => (c.Id > 180 && c.Id < 220));

            Assert.Pass($"MenologyDays count: {items2.Count()}");
            Assert.IsNotNull(items2);
        }