public void TestExecAcquisition() { // using Highpoint.Sage.SimCore; // Obtain an executive of the default type and unspecified Guid from the factory. IExecutive exec1 = ExecFactory.Instance.CreateExecutive(); // ... or ... // Obtain an executive of the default type and specified Guid from the factory. IExecutive exec2 = ExecFactory.Instance.CreateExecutive(Guid.NewGuid()); // ... or ... // Obtain an executive of the specified type and Guid from the factory. IExecutive exec3 = ExecFactory.Instance.CreateExecutive("Highpoint.Sage.SimCore.Executive", Guid.NewGuid()); // ... or ... // Obtain an executive of the specified type and Guid from the factory. IExecutive exec4 = ExecFactory.Instance.CreateExecutive("Highpoint.Sage.SimCore.ExecutiveFastLight", Guid.NewGuid()); Console.WriteLine(exec1.ToString()); Console.WriteLine(exec2.ToString()); Console.WriteLine(exec3.ToString()); Console.WriteLine(exec4.ToString()); }