Ejemplo n.º 1
0
        public void RemoveByName()
        {
            IManagerStore dictionary    = GetManagerStore();
            DriverManager managerToKeep = GetManager();

            dictionary.Add(managerToKeep);
            dictionary.Add(string.Empty, GetManager());
            dictionary.Remove(string.Empty);

            Assert.AreEqual(((WebServiceDriverManager)managerToKeep).Get(), dictionary.GetDriver <EventFiringWebServiceDriver, WebServiceDriverManager>());
        }
Ejemplo n.º 2
0
        public void RemoveByType()
        {
            IManagerStore managerStore  = GetManagerStore();
            DriverManager managerToKeep = GetManager();

            managerStore.Add(GetManager());
            managerStore.Add(string.Empty, managerToKeep);
            managerStore.Remove <WebServiceDriverManager>();

            Assert.AreEqual(managerToKeep, managerStore.GetManager(string.Empty));
        }