public void SimpleClientApprovalMatrixToServer() { WfClientApprovalMatrix client = ApprovalMatrixHelper.PrepareClientApprovalMatrix(); WfApprovalMatrix server = null; WfClientApprovalMatrixConverter.Instance.ClientToServer(client, ref server); client.AreSame(server); }
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); }
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); }