internal static DataManagementSetup CreateDevice(IMessageHandlerFactory messageHandlerFactory, UInt32 dataSetGuid)
 {
     AssociationConfigurationId = dataSetGuid;
       DataManagementSetup _ret = new ConsumerDeviceSimulator();
       _ret.ConfigurationFactory = new ConsumerConfigurationFactory();
       _ret.BindingFactory = new MVVMSimulatorFactory();
       _ret.EncodingFactory = new MyEncodingFactory();
       _ret.MessageHandlerFactory = messageHandlerFactory;
       return _ret;
 }
        internal static ConsumerDeviceSimulator CreateDevice(IMessageHandlerFactory messageHandlerFactory, UInt32 dataSetGuid)
        {
            AssociationConfigurationId = dataSetGuid;
            ConsumerDeviceSimulator _ret = new ConsumerDeviceSimulator();

            _ret.ConfigurationFactory  = new ConsumerConfigurationFactory();
            _ret.BindingFactory        = new MVVMSimulatorFactory();
            _ret.EncodingFactory       = new MyEncodingFactory();
            _ret.MessageHandlerFactory = messageHandlerFactory;
            return(_ret);
        }