public void CreatingPostRequest_WithNullObject_DoesNotSetBody()
        {
            var requestBuilder = new SpreedlyRequestBuilder("blah");

            var request = requestBuilder.BuildPostRequest("blah", null);

            request.Parameters.Where(p => p.Type == ParameterType.RequestBody).ShouldBeEmpty();
        }
        public void AuthenticateRequestWithoutAuthHeader_AddsAuthHeader()
        {
            var client = new RestClient("www.no.where");
            var reqBuilder = new SpreedlyRequestBuilder("v1", "a-site-name");
            var request = reqBuilder.BuildPostRequest("something", "blahblah");
            client.Authenticator = new HttpBasicAuthenticator("uname", "pwd");

            client.Authenticator.Authenticate(client, request);
            Assert.True(request.Parameters.Any(p => p.Name == "Authorization"));
        }