本文整理匯總了C#中Cloud.ListImports方法的典型用法代碼示例。如果您正苦於以下問題:C# Cloud.ListImports方法的具體用法?C# Cloud.ListImports怎麽用?C# Cloud.ListImports使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Cloud
的用法示例。
在下文中一共展示了Cloud.ListImports方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: TestInitialize
public void TestInitialize()
{
factories = Substitute.For<Factories>();
cloudProviderFactory = Substitute.For<CloudProviderFactory>();
cloudProvider = Substitute.For<CloudProvider>();
cloudProviderFactory.Create().Returns(cloudProvider);
settings = new Settings();
factories.Settings.Returns(settings);
vibration = Substitute.For<Vibration>();
cloud = Substitute.For<Cloud>();
messageDialog = Substitute.For<MessageDialog>();
cloudMessages = new Fixture().Create<CloudMessages>();
workerFactory = new BackgroundWorkerSyncFactory();
sut = new ExportAndImportViewModel(factories, cloudProviderFactory, vibration, cloud, messageDialog,
cloudMessages, workerFactory);
cloudProvider.GetAcquiredToken().Returns(new CloudToken { Secret = "foo", Token = "bar" });
cloudProvider.GetTokenAcquiringUrl(ExportAndImportViewModel.TOKEN_ACQUIRING_CALLBACK_URL).Returns("go");
cloud.ListImports().Returns(new List<string>());
navigatedTo = string.Empty;
sut.NavigateInBrowser += (_, url) => { navigatedTo = url; };
}