Skip to content
Snippets Groups Projects
Commit d78575f1 authored by Tobias's avatar Tobias
Browse files

Changed OutputOrder Id to OwnerId

parent 5abb09a0
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ namespace ControlComponents.Core
operationModes = opModes.ToDictionary(o => o.OpModeName);
if (orderOutputs.Any(o => o.Id != ComponentName))
if (orderOutputs.Any(o => o.OwnerId != ComponentName))
{
throw new ArgumentException($"Output Id must be {ComponentName}");
}
......@@ -65,9 +65,9 @@ namespace ControlComponents.Core
public void AddOrderOutput(IOrderOutput newOrderOutput)
{
if (newOrderOutput.Id != ComponentName)
if (newOrderOutput.OwnerId != ComponentName)
{
throw new ArgumentException($"Output Id must be {ComponentName} not {newOrderOutput.Id}");
throw new ArgumentException($"Output Id must be {ComponentName} not {newOrderOutput.OwnerId}");
}
orderOutputs.Add(newOrderOutput.Role, newOrderOutput);
......
......@@ -7,7 +7,7 @@ namespace ControlComponents.Core
{
OrderOutputError Error { get; }
string Role { get; }
string Id { get; }
string OwnerId { get; }
bool IsSet { get; }
bool ChangeComponent(string id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment