/* * DTS.Slice.Control.Event.TestInformation.cs * * Copyright © 2009 * Diversified Technical Systems, Inc. * All Rights Reserved */ using DTS.Common.Utilities; using DTS.Common.Utilities.DotNetProgrammingConstructs; namespace DTS.Slice.Control { // *** see DTS.Slice.Control.DAS.Event.cs *** public partial class Event { /// /// Internal representation of DAS event test information. /// private class TestInformation : Exceptional { /// /// Get/set the ID of the test associated with this DAS event. /// public string Id { get => _Id.Value; set => _Id.Value = value; } private readonly Property _Id = new Property("DTS.Slice.Control.Event.TestInformation.Id", null, false); /// /// Get/set the description of the test associated with this DAS event. /// public string Description { get => _Description.Value; set => _Description.Value = value; } private readonly Property _Description = new Property("DTS.Slice.Control.Event.TestInformation.Description", null, false); /// /// Initialize an instance of the DTS.Slice.Control.Event.TestInformation class. /// public TestInformation() { // // NOTE that the invocation of this constructor will leave this class' // properties uninitialized. } // /// /// Initialize an instance of the DTS.Slice.Control.Event.TestInformation class. /// /// /// /// The ID of the test associated with this DAS event. /// /// /// /// The description of the test associated with this DAS event. /// /// public TestInformation(string id, string description) { try { Id = id; Description = description; } catch (System.Exception ex) { throw new Exception( string.Format( Serialization.StringResources.Strings.DTS_Slice_Control_Event_ConstructionFailedString, GetType().FullName), ex); } } } } }