示例#1
0
        public void IsInvalid()
        {
            var item = new PathologyDto()
            {
                Name = string.Empty,
            };

            Assert.IsFalse(item.IsValid());
        }
示例#2
0
        public void IsValid()
        {
            var item = new PathologyDto()
            {
                Name = Guid.NewGuid().ToString(),
                Tag  = new TagDto(TagCategory.Appointment)
                {
                    Id = 14
                },
            };

            Assert.IsTrue(item.IsValid());
        }