public void ImportData( TeamCityImportType type, string path, TeamCityImportTool?tool = null, bool?verbose = null, bool?parseOutOfDate = null, TeamCityNoDataPublishedAction?action = null) { ControlFlow.Assert( type != TeamCityImportType.dotNetCoverage || tool != null, $"Importing data of type '{type}' requires to specify the tool."); ControlFlow.AssertWarn( !(tool == TeamCityImportTool.dotcover && ConfigurationProperties["teamcity.dotCover.home"].EndsWithOrdinalIgnoreCase("bundled")), new[] { "Configuration parameter 'teamcity.dotCover.home' is set to the bundled version.", $"Adding the '{nameof(TeamCitySetDotCoverHomePathAttribute)}' will automatically set " + $"it to '{nameof(DotCoverTasks)}.{nameof(DotCoverTasks.DotCoverPath)}'." }.JoinNewLine()); Write("importData", x => x .AddPair("type", type) .AddPair("path", path) .AddPairWhenValueNotNull("tool", tool) .AddPairWhenValueNotNull("verbose", verbose) .AddPairWhenValueNotNull("parseOutOfDate", parseOutOfDate) .AddPairWhenValueNotNull("whenNoDataPublished", action)); }
public void ImportData( TeamCityImportType type, string path, TeamCityImportTool?tool = null, bool?verbose = null, bool?parseOutOfDate = null, TeamCityNoDataPublishedAction?action = null) { ControlFlow.Assert(type != TeamCityImportType.dotNetCoverage || tool != null, "type != TeamCityImportType.dotNetCoverage || tool != null"); Write("importData", x => x .AddKeyValue("type", type) .AddKeyValue("path", path) .AddKeyValue("tool", tool) .AddKeyValue("verbose", verbose) .AddKeyValue("parseOutOfDate", parseOutOfDate) .AddKeyValue("whenNoDataPublished", action)); }
public void ImportData(TeamCityImportType type, string path) { Write("importData", x => x.AddKeyValue("type", type).AddKeyValue("path", path)); }