Example #1
0
        public IEnumerable <KeyValuePair <string, string> > For(
            DateTime requestDate,
            string login,
            string signature)
        {
            var dateHeader = _httpHeaderBuilder.ForXMaplinkDate(requestDate);

            var signatureHeader =
                _httpHeaderBuilder
                .ForAuthorization(
                    _authorizationBuilder.For(login, signature));

            return(new List <KeyValuePair <string, string> >
            {
                dateHeader,
                signatureHeader
            });
        }
Example #2
0
 public void ShouldBuildAuthorization()
 {
     _builder.For(Login, Signature).Should().Be.EqualTo(EncodedAuthorization);
 }