Ejemplo n.º 1
0
        public void CustomCriteria()
        {
            var context = GetContext();

            var obj = new CustomCriteria();

            context.Assert.IsNotNull(obj);
            obj.Id = 123;
            context.Assert.AreEqual(123, obj.Id);

            context.Assert.Success();
            context.Complete();
        }
Ejemplo n.º 2
0
        public void SerializeCriteria()
        {
            var context = GetContext();

            var obj = new CustomCriteria();

            context.Assert.IsNotNull(obj);
            obj.Id = 123;
            context.Assert.AreEqual(123, obj.Id);

            obj = (CustomCriteria)Csla.Core.ObjectCloner.Clone(obj);
            context.Assert.AreEqual(123, obj.Id);

            context.Assert.Success();
            context.Complete();
        }