Example #1
0
        public void GetScaffoldablePropertiesTest()
        {
            var u        = new User();
            var expected = new[] { "ScheduledDayOff", "CreatedDate", "Id", "Name", "Age" };
            var props    = SimpleCRUD.GetScaffoldableProperties(u.GetType());

            expected.Length.IsEqualTo(props.Length);
            expected.All(e => props.Any(p => p.Name == e)).IsTrue();
        }