Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Text;
|
---|
4 | using NUnit.Framework;
|
---|
5 |
|
---|
6 | namespace IndianHealthService.BMXNet.Tests.ContextModelTests
|
---|
7 | {
|
---|
8 | [TestFixture]
|
---|
9 | public class KeyTests : BmxValidUserTestSuite
|
---|
10 | {
|
---|
11 | [Test]
|
---|
12 | public void GetKeysAndVerify()
|
---|
13 | {
|
---|
14 | IndianHealthService.BMXNet.Model.User user = this.Framework.Context.User;
|
---|
15 |
|
---|
16 | List<string> keys = user.RequestKeys();
|
---|
17 |
|
---|
18 | foreach (string key in keys)
|
---|
19 | {
|
---|
20 | Assert.IsTrue(user.HasSecurityKey(key));
|
---|
21 | }
|
---|
22 |
|
---|
23 | Assert.IsFalse(user.HasSecurityKey("BMXTEST NOT A KEY"));
|
---|
24 | }
|
---|
25 | }
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.