public void TestGetSampleDevice()
 {
     var randomnumber = new Random();
     ISecurityKeyGenerator securityKeyGenerator = new SecurityKeyGenerator();
     var keys = securityKeyGenerator.CreateRandomKeys();
     var d = SampleDeviceFactory.GetSampleDevice(randomnumber, keys);
     Assert.NotNull(d);
     Assert.NotNull(d.DeviceProperties);
     Assert.NotNull(d.DeviceProperties.DeviceID);
 }
        public void CreateRandomKeysTest()
        {
            ISecurityKeyGenerator securityKeyGenerator = new SecurityKeyGenerator();
            var keys1 = securityKeyGenerator.CreateRandomKeys();
            var keys2 = securityKeyGenerator.CreateRandomKeys();

            Assert.NotNull(keys1);
            Assert.NotEqual(keys1.PrimaryKey, keys1.SecondaryKey);
            Assert.NotEqual(keys1.PrimaryKey, keys2.PrimaryKey);
            Assert.NotEqual(keys1.SecondaryKey, keys2.SecondaryKey);
        }