ServiceStack.Common.Tests.DictionarySettingsTest.Does_parse_byte_array_as_Base64 C# (CSharp) Method

Does_parse_byte_array_as_Base64() private method

private Does_parse_byte_array_as_Base64 ( ) : void
return void
        public void Does_parse_byte_array_as_Base64()
        {
            var authKey = AesUtils.CreateKey();

            var appSettings = new DictionarySettings(new Dictionary<string, string>
            {
                { "AuthKey", Convert.ToBase64String(authKey) }
            });

            Assert.That(appSettings.Get<byte[]>("AuthKey"), Is.EquivalentTo(authKey));
        }
    }