public void RunTest(bool subscribe, BillingService billing) { Album album = new Album("Up"); if (subscribe) { billing.SomeObject = new WeakReference(album); album.PlayEvent += billing.Update; } album.Play(); }
private void GenerateCharge(Album theAlbum) { Console.WriteLine("[BillingService] album.Name: {0}", theAlbum.Name); }