/// <summary>
        /// Initializes a new instance of the <see cref="DataGenerator"/> class.
        /// </summary>
        /// <param name="semanticDataSource">The boilers set.</param>
        internal DataGenerator(ISemanticDataSource semanticDataSource)
        {
            IServiceLocator _serviceLocator = ServiceLocator.Current;

            m_TraceSource = _serviceLocator.GetInstance <ITraceSource>();
            m_TraceSource.TraceData(TraceEventType.Information, 43, $"Starting {nameof(DataGenerator)} with the data source {semanticDataSource.GetType().FullName}");
            m_SemanticDataSource = semanticDataSource;
            m_SemanticDataSource.GetSemanticDataSources(RegisterVariable);
        }
 public void GetSemanticDataSourcesTest()
 {
     using (ISemanticDataSource _set = BoilersSet.Factory)
     {
         Assert.IsNotNull(_set);
         _set.GetSemanticDataSources((semanticDataSetRootBrowsePath, variableRelativeBrowsePath, variable) => AddressSpace.Add($"{semanticDataSetRootBrowsePath}:{variableRelativeBrowsePath}", variable));
         Assert.AreEqual <int>(80, AddressSpace.Count);
         foreach (KeyValuePair <string, IVariable> _var in AddressSpace)
         {
             Debug.WriteLine($"{_var.Key}:{_var.Value.ValueType}");
         }
     }
     Assert.IsTrue(AddressSpace.ContainsKey("BoilersArea_Boiler #1:CCX001_ControlOut"));
     Assert.IsTrue(AddressSpace.ContainsKey("BoilersArea_Boiler #2:CCX001_ControlOut"));
     Assert.IsTrue(AddressSpace.ContainsKey("BoilersArea_Boiler #3:CCX001_ControlOut"));
     Assert.IsTrue(AddressSpace.ContainsKey("BoilersArea_Boiler #4:CCX001_ControlOut"));
 }