private void Init(Tool tool, Invocation invocation, IDictionary<string, FileData> files, IDictionary<string, LogicalLocation> logicalLocations, IEnumerable<Result> results, IEnumerable<Notification> toolNotifications, IEnumerable<Notification> configurationNotifications, IDictionary<string, Rule> rules, string id, string stableId, string automationId, string baselineId, string architecture)
{
if (tool != null)
{
Tool = new Tool(tool);
}
if (invocation != null)
{
Invocation = new Invocation(invocation);
}
if (files != null)
{
Files = new Dictionary<string, FileData>();
foreach (var value_0 in files)
{
Files.Add(value_0.Key, new FileData(value_0.Value));
}
}
if (logicalLocations != null)
{
LogicalLocations = new Dictionary<string, LogicalLocation>();
foreach (var value_1 in logicalLocations)
{
LogicalLocations.Add(value_1.Key, new LogicalLocation(value_1.Value));
}
}
if (results != null)
{
var destination_0 = new List<Result>();
foreach (var value_2 in results)
{
if (value_2 == null)
{
destination_0.Add(null);
}
else
{
destination_0.Add(new Result(value_2));
}
}
Results = destination_0;
}
if (toolNotifications != null)
{
var destination_1 = new List<Notification>();
foreach (var value_3 in toolNotifications)
{
if (value_3 == null)
{
destination_1.Add(null);
}
else
{
destination_1.Add(new Notification(value_3));
}
}
ToolNotifications = destination_1;
}
if (configurationNotifications != null)
{
var destination_2 = new List<Notification>();
foreach (var value_4 in configurationNotifications)
{
if (value_4 == null)
{
destination_2.Add(null);
}
else
{
destination_2.Add(new Notification(value_4));
}
}
ConfigurationNotifications = destination_2;
}
if (rules != null)
{
Rules = new Dictionary<string, Rule>();
foreach (var value_5 in rules)
{
Rules.Add(value_5.Key, new Rule(value_5.Value));
}
}
Id = id;
StableId = stableId;
AutomationId = automationId;
BaselineId = baselineId;
Architecture = architecture;
}
}