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>()); }
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)); }