Ejemplo n.º 1
0
        public void GetUserByAnyFieldValueTest()
        {
            var context = new SecurityModel();

            context.Database.CreateIfNotExists();

            var foundUser = context.GetRowByField <User>(u => u.UserName == "Test");

            Assert.IsNotNull(foundUser, "User not found");

            var foundUser1 = context.GetRowByField <User>(u => u.Login == "Test");

            Assert.IsNotNull(foundUser1, "User not found");
        }