Ejemplo n.º 1
0
        public void BuildsRequestWithParameters()
        {
            var parameters = new Collection <KeyValuePair <string, string> >
            {
                new KeyValuePair <string, string>("client_id", "1"),
                new KeyValuePair <string, string>("client_secret", "secret"),
                new KeyValuePair <string, string>("grant_type",
                                                  "authorization_code"),
                new KeyValuePair <string, string>("code", "some_code")
            };

            _builder.AddParameters(parameters);

            var request = _builder.Request;

            Assert.AreEqual(4, request.Parameters.Count);
        }