1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Text;
|
---|
4 | using NUnit.Framework;
|
---|
5 | using System.Data;
|
---|
6 |
|
---|
7 | namespace IndianHealthService.BMXNet.Tests
|
---|
8 | {
|
---|
9 |
|
---|
10 | /// <summary>
|
---|
11 | /// BMX ADO SS^BMX TEST FILE^^~~~~~
|
---|
12 | ///
|
---|
13 | /// </summary>
|
---|
14 | ///
|
---|
15 |
|
---|
16 | public class LoginTestSuite : BmxValidUserTestSuite
|
---|
17 | {
|
---|
18 | /*
|
---|
19 |
|
---|
20 | [Test]
|
---|
21 | public void LoginAutoServerManualAccessVerify()
|
---|
22 | {
|
---|
23 | BMXBroker Broker;
|
---|
24 | BMXNetConnectInfo connectInfo = new BMXNetConnectInfo();
|
---|
25 | connectInfo.ChangeServerInfo();
|
---|
26 | connectInfo.LoadConnectInfo("greg4330", "ira-4330");
|
---|
27 |
|
---|
28 | if (connectInfo.UserDivisions.Rows.Count > 1)
|
---|
29 | {
|
---|
30 | connectInfo.ChangeDivision(null);
|
---|
31 | }
|
---|
32 | connectInfo.AppContext = "AMHGRPC";
|
---|
33 |
|
---|
34 | Broker = connectInfo.bmxBroker;
|
---|
35 | Broker.ReceiveTimeout = 999999;
|
---|
36 | Broker.RWLTimeout = 9999999;
|
---|
37 | String DUZ = connectInfo.DUZ;
|
---|
38 | String DUZ2 = connectInfo.DUZ2;
|
---|
39 | String sDivisionName = connectInfo.DivisionName;
|
---|
40 | String sConnectionString = connectInfo.GetDSN("AMHGRPC");
|
---|
41 | }
|
---|
42 |
|
---|
43 | [Test]
|
---|
44 | public void LoginAutoServerAutoAccessVerify()
|
---|
45 | {
|
---|
46 | BMXBroker Broker;
|
---|
47 | BMXNetConnectInfo connectInfo = new BMXNetConnectInfo();
|
---|
48 | connectInfo.ChangeServerInfo();
|
---|
49 | connectInfo.LoadConnectInfo();
|
---|
50 |
|
---|
51 | if (connectInfo.UserDivisions.Rows.Count > 1)
|
---|
52 | {
|
---|
53 | connectInfo.ChangeDivision(null);
|
---|
54 | }
|
---|
55 | connectInfo.AppContext = "AMHGRPC";
|
---|
56 |
|
---|
57 | Broker = connectInfo.bmxBroker;
|
---|
58 | Broker.ReceiveTimeout = 999999;
|
---|
59 | Broker.RWLTimeout = 9999999;
|
---|
60 | String DUZ = connectInfo.DUZ;
|
---|
61 | String DUZ2 = connectInfo.DUZ2;
|
---|
62 | String sDivisionName = connectInfo.DivisionName;
|
---|
63 | String sConnectionString = connectInfo.GetDSN("AMHGRPC");
|
---|
64 | }
|
---|
65 |
|
---|
66 | [Test]
|
---|
67 | public void BehaviorialHealthLoginScript()
|
---|
68 | {
|
---|
69 |
|
---|
70 | BMXBroker Broker;
|
---|
71 | BMXNetConnectInfo connectInfo = new BMXNetConnectInfo();
|
---|
72 | connectInfo.ChangeServerInfo();
|
---|
73 | connectInfo.LoadConnectInfo();
|
---|
74 |
|
---|
75 | if (connectInfo.UserDivisions.Rows.Count > 1)
|
---|
76 | {
|
---|
77 | connectInfo.ChangeDivision(null);
|
---|
78 | }
|
---|
79 | connectInfo.AppContext = "AMHGRPC";
|
---|
80 |
|
---|
81 | Broker = connectInfo.bmxBroker;
|
---|
82 | Broker.ReceiveTimeout = 999999;
|
---|
83 | Broker.RWLTimeout = 9999999;
|
---|
84 | String DUZ = connectInfo.DUZ;
|
---|
85 | String DUZ2 = connectInfo.DUZ2;
|
---|
86 | String sDivisionName = connectInfo.DivisionName;
|
---|
87 | String sConnectionString = connectInfo.GetDSN("AMHGRPC");
|
---|
88 |
|
---|
89 |
|
---|
90 | }
|
---|
91 | */
|
---|
92 |
|
---|
93 | }
|
---|
94 | }
|
---|