public static CloudMediaContext GetMediaDataServiceContextForUnitTests(int delaymilliseconds = 0)
 {
     CloudMediaContext mediaContext = new TestCloudMediaContext(new Uri("http://contoso.com"), new MediaServicesCredentials("", ""));
     TestCloudMediaDataContext testCloudMediaDataContext = new TestCloudMediaDataContext(mediaContext,delaymilliseconds);
     mediaContext.MediaServicesClassFactory = new TestMediaServicesClassFactory(testCloudMediaDataContext);
     testCloudMediaDataContext.InitilizeStubData();
     return mediaContext;
 }
Beispiel #2
0
        public static CloudMediaContext GetMediaDataServiceContextForUnitTests(int delaymilliseconds = 0)
        {
            CloudMediaContext         mediaContext = new TestCloudMediaContext(new Uri("http://contoso.com"), new MediaServicesCredentials("fakeClientId", "fakeClientSecret"));
            TestCloudMediaDataContext testCloudMediaDataContext = new TestCloudMediaDataContext(mediaContext, delaymilliseconds);

            mediaContext.MediaServicesClassFactory = new TestMediaServicesClassFactory(testCloudMediaDataContext);
            testCloudMediaDataContext.InitilizeStubData();
            return(mediaContext);
        }