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 }); }
public void ShouldBuildAuthorization() { _builder.For(Login, Signature).Should().Be.EqualTo(EncodedAuthorization); }