BrightcoveOS/.NET-MAPI-Wrapper — pull request #18 by peter-majeed (2012-12-13 17:30:56+00:00)
Title: Updated the SearchVideos methodology.

BrightcoveApi.video.read.cs: Changed search method to reflect changes to the Brightcove API, most notably made the change to the sorting functionality, by adding overloads to the SearchVideos method that take an instance of a new class SortedFieldDictionary, which in turns takes a unique list of SortBy/SortOrder combinations. Preserved existing SortBy/SortOrder overloads/method signatures.

All model classes: Made all setters for collections instantiated in the constructors public. This eliminates confusion among users who want to modify a collection after it's instantiated.

BrightcoveApiConfig.cs: Added support for requests to the Japanese site, api.brightcove.co.jp, as well as the general site, api.brightcove.com, with corresponding URL construction tests. Preserved existing overloads/method signatures.

BrightcoveApiConnector.cs: Exposed the request query string used in HttpRequests, primarily for testing, by offering a public getter and a protected setter. This 1) preserves thread safety and 2) allows for subclasses to set the request url if the GetResponseJson method is overridden.

BrightcoveEnumerations.cs: Added new enumerations to support other changes made to the assembly.

Added xml documentation.

Added a test project to the solution which currently does integration tests only, using a token provided by Brightcove @ http://docs.brightcove.com/en/media/samples/search_videos.html.

SearchVideoTests.cs: Added integration tests to validate results from the Brightcove server.

SearchVideosUrlConstructionTests.cs: Added integration tests surrounding proper construction of search-request URLs.