public void KeyStoreRecognisesIdForPublicKey()
        {
            RSAParameters rsaParams;

            using (var rsa = new RSACryptoServiceProvider())
            {
                rsa.ImportParameters(PrivateTestKey);
                rsaParams = rsa.ExportParameters(false);
            }

            KeyStore.GetPublicKey(Arg.Any <string>()).Returns(rsaParams);
        }
 public void WeHaveKeyId()
 {
     _keyId = "Fail";
     KeyStore.GetPublicKey(_keyId).Throws(new MasterKeyNotFoundException(_keyId));
 }