Exemplo n.º 1
0
        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();
        }