source: BMXNET_RPMS_dotNET_UTILITIES-BMX/branch/IHS BMX Framework/IndianHealthService.BMXNet.Test/TestTable.cs@ 1146

Last change on this file since 1146 was 1146, checked in by Sam Habiel, 13 years ago

Initial Import of BMX4

File size: 1.9 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace IndianHealthService.BMXNet.Tests
6{
7 public class TestTable
8 {
9 private string _commandRpc = "BMX TEST ADO";
10
11 public string CommandRpc
12 {
13 get { return _commandRpc; }
14 set { _commandRpc = value; }
15 }
16
17 private string _header = "";
18
19 public string Header
20 {
21 get { return _header; }
22 set { _header = value; }
23 }
24 private string _rowData = "";
25
26 public string RowData
27 {
28 get { return _rowData; }
29 set { _rowData = value; }
30 }
31 private int _repeat = 1;
32
33 public int Repeat
34 {
35 get { return _repeat; }
36 set { _repeat = value; }
37 }
38 private int _hangtime = 0;
39
40 public int Hangtime
41 {
42 get { return _hangtime; }
43 set { _hangtime = value; }
44 }
45
46 private String _asyncId = "";
47
48 public String AsyncId
49 {
50 get { return _asyncId; }
51 set { _asyncId = value; }
52 }
53
54 public static TestTable TypicalTableFetch()
55 {
56
57 TestTable typical = new TestTable();
58 typical.Header = "D00010DOB|T00030NAME|T00010SEX";
59 typical.RowData = "NOV 13, 2002|SMITH, JOHN|MALE";
60 typical.Repeat = 10;
61 return typical;
62 }
63
64 public string AsyncCommand(String anId,int aDelay) {
65 this.AsyncId=anId;
66 this.Hangtime=aDelay;
67
68 return this.Command();
69 }
70
71 public String Command()
72 {
73 return this.CommandRpc + "^" + this.Header + "^" + this.RowData + "^" + this.Repeat + "^" + this.Hangtime.ToString() + "^" + this.AsyncId ;
74 }
75 }
76}
Note: See TracBrowser for help on using the repository browser.