static void Main(string[] args) { var Manager = new TestManager(); Manager.ItemAdded += (manager, item) => Debug.WriteLine("Item added: " + item.Id); Manager.ItemRemoved += (manager, item) => Debug.WriteLine("Item removed: " + item.Id); var entity1 = Manager.Create("entity1"); var entity2 = Manager.Create("entity2"); Manager.Remove("entity1"); var entity3 = Manager.Create("entity3"); Manager.Remove("entity3"); Manager.Remove("entity4"); }
public TestClass(string id, TestManager manager) : base(id, manager) { Debug.WriteLine(Id + " - ctor"); }