本文整理汇总了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; };
}