public void Import_Gateways_MatchConfigurations() { var configuredGateways = GatewayTestsFixture.GetGatewayConfigurations(GatewayType.Sync, GatewayCapabilities.None); var importedGateways = fixture.Gateways; CollectionAssert.AreEquivalent(configuredGateways.Select(c => c.Schema).ToList(), importedGateways.Select(g => g.Metadata.CloudService).ToList(), "Gateway configurations do not match imported gateways"); foreach (var configuredGateway in configuredGateways) { var importedGateway = importedGateways.Single(g => g.Metadata.CloudService == configuredGateway.Schema); Assert.AreEqual(GatewayCapabilities.All ^ configuredGateway.Exclusions, importedGateway.Metadata.Capabilities, $"Gateway capabilities for '{configuredGateway.Schema}' differ".ToString(CultureInfo.CurrentCulture)); } }
internal static TestDirectoryFixture CreateTestDirectory(ICloudGateway gateway, GatewayElement config, GatewayTestsFixture fixture) { return(new TestDirectoryFixture(gateway, fixture.GetRootName(config), config.ApiKey, fixture.GetParameters(config), config.TestDirectory)); }
public void Cleanup() { fixture = null; }
public void Initialize() { fixture = new GatewayTestsFixture(); CompositionInitializer.SatisfyImports(fixture); }