Simple IAsyncResult implementation that can be used to cache all the parameters to the BeginFoo call and then passed to the FooThunk property that's invoked by EndFoo (thereby providing the test's implementation of FooThunk with as much of the state as it wants).
Inheritance: IAsyncResult
 public IAsyncResult BeginGetOrganizations(AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginGetDeployments(int maxItems, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["maxItems"] = maxItems;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginGetWebSpaces(string subscriptionName, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionName"] = subscriptionName;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginDeploy(string commitId, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["commitId"] = commitId;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginGetSites(string subscriptionName, string webspaceName, string propertiesToInclude, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionName"] = subscriptionName;
     result.Values["webspaceName"] = webspaceName;
     result.Values["propertiesToInclude"] = propertiesToInclude;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginAddCertificates(string subscriptionId, string serviceName, CertificateFile input, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serviceName"] = serviceName;
     result.Values["input"] = input;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginDeleteCertificate(string subscriptionId, string serviceName, string thumbprintAlgorithm, string thumbprintInHex, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serviceName"] = serviceName;
     result.Values["thumbprintalgorithm"] = thumbprintAlgorithm;
     result.Values["thumbprintInHex"] = thumbprintInHex;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginCreateSiteRepository(string subscriptionName, string webspaceName, string name, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionName"] = subscriptionName;
     result.Values["webspaceName"] = webspaceName;
     result.Values["name"] = name;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginDeleteSite(string subscriptionName, string webspaceName, string name, string deleteMetrics, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionName"] = subscriptionName;
     result.Values["webspaceName"] = webspaceName;
     result.Values["name"] = name;
     result.Values["deleteMetrics"] = deleteMetrics;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginGetOperationStatus(string subscriptionId, string operationTrackingId, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["operationTrackingId"] = operationTrackingId;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginListOperatingSystemFamilies(string subscriptionId, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginGetDeploymentBySlot(string subscriptionId, string serviceName, string deploymentSlot, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serviceName"] = serviceName;
     result.Values["deploymentSlot"] = deploymentSlot;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginGetAffinityGroup(string subscriptionId, string affinityGroupName, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["affinityGroupName"] = affinityGroupName;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginCreateRepositoryHook(string owner, string repository, GithubRepositoryHook hook, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["owner"] = owner;
     result.Values["repository"] = repository;
     result.Values["hook"] = hook;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginRegenerateStorageServiceKeys(string subscriptionId, string serviceName, RegenerateKeys regenerateKeys, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serviceName"] = serviceName;
     result.Values["regenerateKeys"] = regenerateKeys;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginReimageDeploymentRoleInstance(string subscriptionId, string serviceName, string deploymentName, string roleInstanceName, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serviceName"] = serviceName;
     result.Values["deploymentName"] = deploymentName;
     result.Values["roleInstanceName"] = roleInstanceName;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginWalkUpgradeDomain(string subscriptionId, string serviceName, string deploymentName, WalkUpgradeDomainInput input, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serviceName"] = serviceName;
     result.Values["deploymentName"] = deploymentName;
     result.Values["input"] = input;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginCreateHostedService(string subscriptionId, CreateHostedServiceInput input, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["input"] = input;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginTestRepositoryHook(string owner, string repository, string id, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["owner"] = owner;
     result.Values["repository"] = repository;
     result.Values["id"] = id;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginSwapDeployment(string subscriptionId, string serviceName, SwapDeploymentInput input, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serviceName"] = serviceName;
     result.Values["input"] = input;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginDeleteHostedService(string subscriptionId, string serviceName, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serviceName"] = serviceName;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginUpdateStorageService(string subscriptionId, string StorageServiceName, UpdateStorageServiceInput updateStorageServiceInput, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["StorageServiceName"] = StorageServiceName;
     result.Values["updateStorageServiceInput"] = updateStorageServiceInput;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginGetHostedServiceWithDetails(string subscriptionId, string serviceName, Boolean embedDetail, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serviceName"] = serviceName;
     result.Values["embedDetail"] = embedDetail;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginGetRepositoriesFromOrg(string organization, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["organization"] = organization;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }