Exemple #1
0
        public void ClientProcessQueryConditionToServerTest()
        {
            WfClientProcessQueryCondition client = PrepareQueryCondition();

            WfProcessQueryCondition server = null;

            WfClientProcessQueryConditionConverter.Instance.ClientToServer(client, ref server);

            client.AreSame(server);
        }
Exemple #2
0
        public void ClientProcessQueryConditionSerializationTest()
        {
            WfClientJsonConverterHelper.Instance.RegisterConverters();

            WfClientProcessQueryCondition condition = PrepareQueryCondition();

            string data = JSONSerializerExecute.Serialize(condition);

            Console.WriteLine(data);

            WfClientProcessQueryCondition deserialized = JSONSerializerExecute.Deserialize <WfClientProcessQueryCondition>(data);

            condition.AreSame(deserialized);
        }