Ejemplo n.º 1
0
        public void FilterCollectionTest()
        {
            var docEdit = new DocState();
            var props   = docEdit.ToCollection();

            Assert.IsTrue(props != null);
        }
Ejemplo n.º 2
0
        public void ToCollectionTest()
        {
            var docEdit = new DocState();
            var props   = docEdit.ToCollection();

            Assert.IsTrue(props.Any() == false);

            docEdit.Revision.Value = "2";
            props = docEdit.ToCollection();
            Assert.IsTrue(props.Count == 1);

            docEdit.EffectiveDate.Value = "2020-03-12";
            props = docEdit.ToCollection();
            Assert.IsTrue(props.Count == 2);

            docEdit.EffectiveDate.Value = null;
            props = docEdit.ToCollection();
            Assert.IsTrue(props.Count == 1);
        }