示例#1
0
        public void SimpleClientApprovalMatrixToServer()
        {
            WfClientApprovalMatrix client = ApprovalMatrixHelper.PrepareClientApprovalMatrix();

            WfApprovalMatrix server = null;

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

            client.AreSame(server);
        }
示例#2
0
        public void ClientApprovalMatrixDescriptorSerializationTest()
        {
            WfClientJsonConverterHelper.Instance.RegisterConverters();

            WfClientApprovalMatrix matrix = ApprovalMatrixHelper.PrepareClientApprovalMatrix();

            string data = JSONSerializerExecute.Serialize(matrix);

            Console.WriteLine(data);

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

            matrix.AreSame(deserialized);
        }
示例#3
0
        public void ClientApprovalMatrixToExcelTest()
        {
            WfClientApprovalMatrix matrix = ApprovalMatrixHelper.PrepareClientApprovalMatrix();

            WorkBook workBook = matrix.ToWorkBook();

            workBook.Save("ClientApprovalMatrixToExcelTest.xlsx");

            WfClientApprovalMatrix deserialized = workBook.ToApprovalMatrix();

            deserialized.ID = matrix.ID;

            matrix.AreSame(deserialized);
        }