private void FetchManagers() { Manager[] managers = GetComponents <Manager>(); foreach (Manager manager in managers) { managerStore.Add(manager); } }
public void TryGetManagerNotFound() { IManagerStore managerStore = new ManagerStore(); DriverManager managerToKeep = GetManager(); managerStore.Add("TestDriver", managerToKeep); var result = managerStore.TryGetManager <WebServiceDriverManager>("NotFound", out var driverManager); Assert.IsFalse(result, "Should not find driver"); Assert.IsNull(driverManager, "Driver was not null"); }