public void RunTestMethod() { DataManagementSetup _ndm = new DataManagementSetup(); Assert.IsNotNull(_ndm); _ndm.Run(); }
public void DataManagementSetupCreatorTestMethod() { DataManagementSetup _ndm = new DataManagementSetup(); Assert.IsNotNull(_ndm); Assert.IsNull(_ndm.BindingFactory); Assert.IsNull(_ndm.ConfigurationFactory); Assert.IsNull(_ndm.EncodingFactory); Assert.IsNull(_ndm.MessageHandlerFactory); }
public void DataManagementSetupCreatorTestMethod() { using (DataManagementSetup _ndm = new DataManagementSetup()) { Assert.IsNull(_ndm.BindingFactory); Assert.IsNull(_ndm.ConfigurationFactory); Assert.IsNull(_ndm.EncodingFactory); Assert.IsNull(_ndm.MessageHandlerFactory); } }
public void InitializeTestMethod() { DataManagementSetup _ndm = new DataManagementSetup(); Assert.IsNotNull(_ndm); _ndm.BindingFactory = new BF(); _ndm.ConfigurationFactory = new CF(); _ndm.EncodingFactory = new EF(); _ndm.MessageHandlerFactory = new MF(); _ndm.Initialize(); }
public void InitializeTestMethod() { DataManagementSetup _ndm = new DataManagementSetup(); Assert.IsNotNull(_ndm); _ndm.BindingFactory = new BF(); _ndm.ConfigurationFactory = new CF(); _ndm.EncodingFactory = new EF(); _ndm.MessageHandlerFactory = new MF(); _ndm.Initialize(); }
public void CreatorTestMethod() { Guid _dataSetGuid = Guid.NewGuid(); MyMessageHandlerFactory _mhf = new MyMessageHandlerFactory(_dataSetGuid); DataManagementSetup _producer = Simulator.OPCUAServerProducerSimulator.CreateDevice(_mhf, _dataSetGuid); Assert.IsNull(_producer.AssociationsCollection); Assert.IsNotNull(_producer.BindingFactory); Assert.IsNotNull(_producer.ConfigurationFactory); Assert.IsNotNull(_producer.EncodingFactory); Assert.IsNotNull(_producer.MessageHandlerFactory); Assert.IsNull(_producer.MessageHandlersCollection); _producer.Initialize(); _producer.Run(); Assert.AreEqual <int>(1, _producer.AssociationsCollection.Count); Assert.AreEqual <int>(1, _producer.MessageHandlersCollection.Count); ((OPCUAServerProducerSimulator)_producer).CheckConsistency(); _mhf.CheckConsistency(); ((OPCUAServerProducerSimulator)_producer).Update("Value1", "Value1"); }
public void ConsumerDeviceSimulatorTestMethod() { UInt32 DataSetGuid = UInt32.MaxValue; MyMessageHandlerFactory _mhf = new MyMessageHandlerFactory(DataSetGuid); DataManagementSetup _consumer = ConsumerDeviceSimulator.CreateDevice(_mhf, DataSetGuid); Assert.IsNull(_consumer.AssociationsCollection); Assert.IsNotNull(_consumer.BindingFactory); Assert.IsNotNull(_consumer.ConfigurationFactory); Assert.IsNotNull(_consumer.EncodingFactory); Assert.IsNotNull(_consumer.MessageHandlerFactory); Assert.IsNull(_consumer.MessageHandlersCollection); _consumer.Initialize(); _consumer.Run(); Assert.AreEqual <int>(1, _consumer.AssociationsCollection.Count); Assert.AreEqual <int>(1, _consumer.MessageHandlersCollection.Count); ((ConsumerDeviceSimulator)_consumer).CheckConsistency(); _mhf.CheckConsistency(); _mhf.SendData(); }
public void RunTestMethod() { DataManagementSetup _ndm = new DataManagementSetup(); Assert.IsNotNull(_ndm); _ndm.Run(); }