Exemple #1
0
        public void TestClassConstruction()
        {
            ActorConnection actorConnection = new ActorConnection(new ActorName(ActorTypeEnum.AcquisitionModality, "ID1"), false);
            Assert.That(actorConnection.ActorName.Type, Is.EqualTo(ActorTypeEnum.AcquisitionModality));
            Assert.That(actorConnection.ActorName.Id, Is.EqualTo("ID1"));
            Assert.That(actorConnection.IsActive, Is.EqualTo(false));

            actorConnection = new ActorConnection(new ActorName(ActorTypeEnum.DssOrderFiller, "ID2"), true);
            Assert.That(actorConnection.ActorName.Type, Is.EqualTo(ActorTypeEnum.DssOrderFiller));
            Assert.That(actorConnection.ActorName.Id, Is.EqualTo("ID2"));
            Assert.That(actorConnection.IsActive, Is.EqualTo(true));
        }
Exemple #2
0
        public void TestClassConstruction()
        {
            ActorConnection actorConnection = new ActorConnection(new ActorName(ActorTypeEnum.AcquisitionModality, "ID1"), false);
            Assert.That(actorConnection.ActorName.Type, Is.EqualTo(ActorTypeEnum.AcquisitionModality));
            Assert.That(actorConnection.ActorName.Id, Is.EqualTo("ID1"));
            Assert.That(actorConnection.IsActive, Is.EqualTo(false));

            actorConnection = new ActorConnection(new ActorName(ActorTypeEnum.DssOrderFiller, "ID2"), true);
            Assert.That(actorConnection.ActorName.Type, Is.EqualTo(ActorTypeEnum.DssOrderFiller));
            Assert.That(actorConnection.ActorName.Id, Is.EqualTo("ID2"));
            Assert.That(actorConnection.IsActive, Is.EqualTo(true));
        }
Exemple #3
0
 /// <summary>
 /// Removes the first occurrence of a specific <see cref="ActorConnection"/> from the <see cref="ActorConnectionCollection"/>.
 /// </summary>
 /// <param name="value">The <see cref="ActorConnection"/> to remove from the <see cref="ActorConnectionCollection"/>.</param>
 public void Remove(ActorConnection value)
 {
     List.Remove(value);
 }
Exemple #4
0
 /// <summary>
 /// Inserts an <see cref="ActorConnection"/> element into the <see cref="ActorConnectionCollection"/> at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which value should be inserted.</param>
 /// <param name="value">The <see cref="ActorConnection"/> to insert.</param>
 public void Insert(int index, ActorConnection value)
 {
     List.Insert(index, value);
 }
Exemple #5
0
 /// <summary>
 /// Searches for the specified <see cref="ActorConnection"/> and
 /// returns the zero-based index of the first occurrence within the entire <see cref="ActorConnectionCollection"/>.
 /// </summary>
 /// <param name="value">The <see cref="ActorConnection"/> to locate in the <see cref="ActorConnectionCollection"/>.</param>
 /// <returns>
 /// The zero-based index of the first occurrence of value within the entire <see cref="ActorConnectionCollection"/>,
 /// if found; otherwise, -1.
 /// </returns>
 public int IndexOf(ActorConnection value)
 {
     return(List.IndexOf(value));
 }
Exemple #6
0
 /// <summary>
 /// Adds an object to the end of the <see cref="ActorConnectionCollection"/>.
 /// </summary>
 /// <param name="value">The <see cref="ActorConnection"/> to be added to the end of the <see cref="ActorConnectionCollection"/>.</param>
 /// <returns>The <see cref="ActorConnectionCollection"/> index at which the value has been added.</returns>
 public int Add(ActorConnection value)
 {
     return(List.Add(value));
 }
Exemple #7
0
 /// <summary>
 /// Determines whether the <see cref="ActorConnectionCollection"/> contains a specific element.
 /// </summary>
 /// <param name="value">The <see cref="ActorConnection"/> to locate in the <see cref="ActorConnectionCollection"/>.</param>
 /// <returns>
 /// <c>true</c> if the <see cref="ActorConnectionCollection"/> contains the specified value;
 /// otherwise, <c>false</c>.
 /// </returns>
 public bool Contains(ActorConnection value)
 {
     // If value is not of type Code, this will return false.
     return(List.Contains(value));
 }
 /// <summary>
 /// Determines whether the <see cref="ActorConnectionCollection"/> contains a specific element.
 /// </summary>
 /// <param name="value">The <see cref="ActorConnection"/> to locate in the <see cref="ActorConnectionCollection"/>.</param>
 /// <returns>
 /// <c>true</c> if the <see cref="ActorConnectionCollection"/> contains the specified value; 
 /// otherwise, <c>false</c>.
 /// </returns>
 public bool Contains(ActorConnection value)
 {
     // If value is not of type Code, this will return false.
     return (List.Contains(value));
 }
 /// <summary>
 /// Adds an object to the end of the <see cref="ActorConnectionCollection"/>.
 /// </summary>
 /// <param name="value">The <see cref="ActorConnection"/> to be added to the end of the <see cref="ActorConnectionCollection"/>.</param>
 /// <returns>The <see cref="ActorConnectionCollection"/> index at which the value has been added.</returns>
 public int Add(ActorConnection value)
 {
     return (List.Add(value));
 }
 /// <summary>
 /// Removes the first occurrence of a specific <see cref="ActorConnection"/> from the <see cref="ActorConnectionCollection"/>.
 /// </summary>
 /// <param name="value">The <see cref="ActorConnection"/> to remove from the <see cref="ActorConnectionCollection"/>.</param>
 public void Remove(ActorConnection value)
 {
     List.Remove(value);
 }
 /// <summary>
 /// Inserts an <see cref="ActorConnection"/> element into the <see cref="ActorConnectionCollection"/> at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which value should be inserted.</param>
 /// <param name="value">The <see cref="ActorConnection"/> to insert.</param>
 public void Insert(int index, ActorConnection value)
 {
     List.Insert(index, value);
 }
 /// <summary>
 /// Searches for the specified <see cref="ActorConnection"/> and 
 /// returns the zero-based index of the first occurrence within the entire <see cref="ActorConnectionCollection"/>.
 /// </summary>
 /// <param name="value">The <see cref="ActorConnection"/> to locate in the <see cref="ActorConnectionCollection"/>.</param>
 /// <returns>
 /// The zero-based index of the first occurrence of value within the entire <see cref="ActorConnectionCollection"/>, 
 /// if found; otherwise, -1.
 /// </returns>
 public int IndexOf(ActorConnection value)
 {
     return (List.IndexOf(value));
 }
 /// <summary>
 /// Copies the elements of the <see cref="ICollection"/> to a strong-typed <c>ActorConnection[]</c>, 
 /// starting at a particular <c>ActorConnection[]</c> index.
 /// </summary>
 /// <param name="array">
 /// The one-dimensional <c>ActorConnection[]</c> that is the destination of the elements 
 /// copied from <see cref="ICollection"/>.
 /// The <c>ActorConnection[]</c> must have zero-based indexing. 
 /// </param>
 /// <param name="index">
 /// The zero-based index in array at which copying begins.
 /// </param>
 /// <remarks>
 /// Provides the strongly typed member for <see cref="ICollection"/>.
 /// </remarks>
 public void CopyTo(ActorConnection[] array, int index)
 {
     ((ICollection)this).CopyTo(array, index);
 }