public void ThenGetReferenceIdSucceeds(string id) { // Arrange var encryptedKey = new EncryptedKey { Id = id }; AS4EncryptedKey as4EncryptedKey = AS4EncryptedKey.FromEncryptedKey(encryptedKey); // Act string referenceId = as4EncryptedKey.GetReferenceId(); // Assert Assert.Equal(id, referenceId); }
public void ThenGetCipherDataSucceeds() { // Arrange var cipherData = new CipherData { CipherValue = new byte[] { 20 } }; var encryptedKey = new EncryptedKey { CipherData = cipherData }; AS4EncryptedKey as4EncryptedKey = AS4EncryptedKey.FromEncryptedKey(encryptedKey); // Act CipherData as4CipherData = as4EncryptedKey.GetCipherData(); // Assert Assert.Equal(cipherData, as4CipherData); }