Permalink
Switch branches/tags
Nothing to show
Commits on Jan 15, 2017
Commits on Jan 14, 2017
  1. adds the publish step to the build script

    dalpert-korewireless committed Jan 14, 2017
    - requires that the caller passes in a value for NugetApiKey
  2. use gitversion to determine the version number

    dalpert-korewireless committed Jan 9, 2017
    NOTE: this introduces a requirement that nuget restore is called on
          the solution before the build script will run, as the script
          imports a targets file brought down in the GitVersionTask
          package
    
        - go.cmd has been updated to call this explicitly
    
        - teamcity will be configured to do the same
    
        - this avoids checking in the GitVersionTask binaries
Commits on Jan 9, 2017
Commits on Jan 8, 2017
  1. Merge pull request #34 from davidalpert/mockable

    dalpert-korewireless committed Jan 8, 2017
    add seams for mocking and injecting fake responses
Commits on Jan 4, 2017
  1. Update README.md

    hhariri committed Jan 4, 2017
  2. Update README.md

    hhariri committed Jan 4, 2017
  3. Update README.md

    hhariri committed Jan 4, 2017
  4. Update README.md

    hhariri committed Jan 4, 2017
Commits on Jan 3, 2017
  1. adds back in the wrapping abstractions

    dalpert-korewireless committed Jan 1, 2017
    - notice this commit includes minimal changes to the specs
    
    - only the one I wrote recently which explicitly dips into
      the underlying HttpWebRequest needs a little help to adapt
      to the new abstraction.
    
    - the other addition to the spec is a new one demonstrating
      a proposed syntax for injecting a response interceptor.
    
    - a response interceptor takes a predicate which is given
      the opportunity to match against an HttpRequest as generated
      by HttpClient without any other stubbing.
    
    - if one matches then it is used to inject a stubbed
      IHttpWebRequest into the HttpResponse class so when it
      asks the IHttpWebRequest for an IHttpWebResposne we can
      provide the injected response.
    
    - not all members have been fleshed out, though enough are
      present that the new injecting spec will pass
    
    - all other specs pass as-is, making this much less of a
      breaking change than my first attempt to introduce
      interfaces.
Commits on Jan 1, 2017
  1. remove the response factory seam

    dalpert-korewireless committed Jan 1, 2017
    - virtual HttpClient methods achieve the same result
      in a more flexible and more granular way.
  2. make HttpClient mockable

    dalpert-korewireless committed Jan 1, 2017
    - make public members and properties virtual so they can
      be overridden to specify specific behavior.
    
    - this allows mocking of specific client calls based
      on matching specific parameters (i.e. one can
      setup a Get to return something different than a
      Post or even two Gets to different URLs to return
      unique HttpResponse for each URL)
  3. trim whitespace

    dalpert-korewireless committed Jan 1, 2017
  4. make HttpResponse mockable

    dalpert-korewireless committed Jan 1, 2017
    - make all public members and methods virtual so they can
      be overridden to replace with injected behavior.
    
    - adds a default parameterless constructor to HttpResponse
      to enable easy mocking.
    
    - usees the default encoder configuration to get a decoder
      if none is provided as in case of the default parameterless
      constructor.
  5. extract method

    dalpert-korewireless committed Jan 1, 2017
Commits on Dec 24, 2016
  1. Merge pull request #33 from davidalpert/disable-automatic-decompression

    hhariri committed Dec 24, 2016
    Disable automatic decompression
Commits on Dec 23, 2016
  1. adds an HttpClient.DisableAutomaticCompression property

    dalpert-korewireless committed Dec 23, 2016
    - adds a pair of failing specs to document the desired behavior
  2. adds a pair of specifications to document current behavior

    dalpert-korewireless committed Dec 23, 2016
    - gzip and deflate headers are being added to the underlying
      HttpWebRequest regardless of what is explicitly set in
      HttpClient.Request.AcceptEncoding
    
    - the HttpRequest class uses an underlying System.Net.WebRequest
      which exposes an AutomaticDecompression Flags Enum.
    
    - the SetupHeader method explicitly sets the underlying HttpWebRequest
      to use GZip and Deflate decompression methods
      https://github.com/hhariri/EasyHttp/blob/master/src/EasyHttp/Http/HttpRequest.cs#L136
    
    - this in turn results in the underlying web request adding
      gzip, deflate to the Accept-Encoding http header which gets sent
      across the wire, regardless of whatever value the consumer sets
      for the HttpClient.Request.AcceptEncoding field.
Commits on Mar 31, 2016
  1. Ignoring test on Error due to site down

    hhariri committed Mar 31, 2016
    Not the best option but interim solution to get new package out.
  2. Merge pull request #30 from borismod/master

    hhariri committed Mar 31, 2016
    An ability to prevent removing @ sign from HTTP response
Commits on Mar 29, 2016
Commits on Oct 1, 2015
  1. Merge pull request #31 from JunHashimoto/master

    hhariri committed Oct 1, 2015
    Just a little change :)