source: BMXNET_RPMS_dotNET_UTILITIES-BMX/branch/BMX41000/IHS BMX Framework/IndianHealthService.BMXNet.Test/ContextModelTests/KeyTests.cs@ 1685

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

Initial Import of BMX4

File size: 685 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4using NUnit.Framework;
5
6namespace 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.