diff --git a/test/App.Test/CryptoServiceTests.cs b/test/App.Test/CryptoServiceTests.cs index bb619cc8e..1edfee16e 100644 --- a/test/App.Test/CryptoServiceTests.cs +++ b/test/App.Test/CryptoServiceTests.cs @@ -26,12 +26,13 @@ namespace Bit.App.Test { var storageService = Substitute.For(); var keyService = Substitute.For(); + storageService.Contains("key").Returns(true); storageService.Retrieve("key").Returns( Convert.FromBase64String("QpSYI5k0bLQXEygUEHn4wMII3ERatuWDFBszk7JAhbQ=")); var service = new CryptoService(storageService, keyService); - var encryptedHi = service.Encrypt(value); - return service.Decrypt(encryptedHi); + var encryptedValue = service.Encrypt(value); + return service.Decrypt(encryptedValue); } } }