示例#1
0
 private void SimulateTenEmployerRegisterTheTopic(Subject moneyTopic)
 {
     for (int i = 0; i < 10; i++)
     {
         Follower employer = new Follower("Employer" + i.ToString());
         moneyTopic.Attach(employer);
     }
 }
示例#2
0
 private void SimulateTenBuyerRegisterTheTopic(Subject newTopic)
 {
     for (int i = 0; i < 10; i++)
     {
         Follower buyer = new Follower("Buyer" + i.ToString());
         newTopic.Attach(buyer);
     }
 }