Acid.PuntoPagos.Sdk.Test.Imp.AuthorizationHmacsha1Fixture.when_call_get_authorization_header_with_parameters_then_return_authorization_string_other_other C# (CSharp) Méthode

when_call_get_authorization_header_with_parameters_then_return_authorization_string_other_other() private méthode

        public void when_call_get_authorization_header_with_parameters_then_return_authorization_string_other_other()
        {
            const string message = "transaccion/notificacion\n9XJ08401WN0071839\n9787415132\n1000000.00\nMon, 15 Jun 2009 20:48:30 GMT";
            _clientConfiguration.Setup(x => x.GetClientKey()).Returns("0PN5J17HBGZHT7ZZ3X82");
            _clientConfiguration.Setup(x => x.GetClientSecret()).Returns("uV3F4YluFJax1cKnvbcGwgjvx4QpvB+leU8dUj2o");

            var authorization = GenerateAuthorization().GetAuthorizationHeader(message);

            Assert.AreEqual("PP 0PN5J17HBGZHT7ZZ3X82:fU6+JLYWzOSGuo76XJzT/Z596Qg=", authorization);
        }