Esempio n. 1
0
        public void GetByPastDueHaspKey()
        {
            List <HaspKey> GetByActive;
            var            GetByActiveExpected = new List <HaspKey>
            {
                new HaspKey
                {
                    Id      = 2,
                    InnerId = 2,
                    Number  = "uz-3",
                    IsHome  = true,
                    TypeKey = TypeKey.Pro,
                }
            };

            using (var db = new EntitesContext())
            {
                ClearTable.HaspKeys(db);
                ClearTable.KeyFeatures(db);
                haspKeyL = Get(db);

                db.HaspKeys.AddRange(CreateListEntities.HaspKeys());
                db.KeyFeatures.AddRange(CreateListEntities.KeyFeatures());
                db.SaveChanges();

                GetByActive = haspKeyL.GetByPastDue();
            }

            CollectionAssert.AreEqual(GetByActive, GetByActiveExpected);
        }
Esempio n. 2
0
 public List <ModelViewHaspKey> GetByPastDue() => Convert(keyLogic.GetByPastDue());