public void SetUp()
 {
     using (var _idGenerator = IdGenerator.GetIDGenerator())
     {
         Nol3ConfigurationManager.SaveConfiguration(new Tools.Model.Nol3Configuration
         {
             registryPath = Nol3ConfigurationManager.GetConfiguration().registryPath,
             ID           = Convert.ToInt32(_idGenerator.CurrentID)
         });
     }
     Nol3 = Nol3Connector.CreateClient(Nol3RegistryReader.Settings);
 }
        public void TestIfSingletonWorksForNol3Client()
        {
            var settings = new NOL3RegistrySetting()
            {
                AsynchPort         = 1,
                IsAsynchPortActive = true,
                IsSynchPortActive  = true,
                SynchPort          = 2
            };
            var instance1 = Nol3Connector.CreateClient(settings);
            var instance2 = Nol3Connector.CreateClient(settings);

            Assert.That(instance1, Is.SameAs(instance2));
        }