Пример #1
0
        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());
        }
Пример #2
0
 protected bool Equals(Identity other)
 {
     return _value.Equals(other._value);
 }
Пример #3
0
 public bool Contains(Identity key)
 {
     return _items.Contains(key);
 }
 public TaskDefinitionAssertions(Identity identity, TaskWithBehaviors taskWithBehaviors, RegisteredTasks definitions)
 {
     _identity = identity;
     _taskWithBehaviors = taskWithBehaviors;
     _definitions = definitions;
 }