public void SetDocument()
 {
     var device = new StringDiscoveryDevice
                      { Document = "test document, should be json, but for the test it doesn't matter" };
     Assert.IsNotNull(device.Document);
     Assert.AreEqual("test document, should be json, but for the test it doesn't matter", device.Document);
 }
        protected IService CreateAdSenseV1_0Service()
        {
            var buzzTestFetcher = new StringDiscoveryDevice { Document = AdSenseDiscoveryV1 };
            var discovery = new DiscoveryService(buzzTestFetcher);

            // Build the service based on discovery information.
            return discovery.GetService(DiscoveryVersion.Version_1_0);
        }
 protected IService CreateBuzzService()
 {
     var buzzTestFetcher = new StringDiscoveryDevice { Document = BuzzServiceAsJson };
     var discovery = new DiscoveryService(buzzTestFetcher);
     // Build the service based on discovery information.
     return discovery.GetService(DiscoveryVersion.Version_0_3, new FactoryParameters("http://test.server.example.com", "/testService"));
 }