public static Identities operator +(Identities that, Identities additional) { var resultItems = new Identity[that.Items.Length + additional.Items.Length]; for (var i = 0; i < that.Items.Length; i++) { resultItems[i] = that.Items[i]; } for (var i = that.Items.Length; i < that.Items.Length + additional.Items.Length; i++) { resultItems[i] = additional.Items[i - that.Items.Length]; } return new Identities(resultItems.Distinct().ToArray()); }
protected bool Equals(Identity other) { return _value.Equals(other._value); }
public bool Contains(Identity key) { return _items.Contains(key); }
public TaskDefinitionAssertions(Identity identity, TaskWithBehaviors taskWithBehaviors, RegisteredTasks definitions) { _identity = identity; _taskWithBehaviors = taskWithBehaviors; _definitions = definitions; }