Exemple #1
0
 public void SetUp()
 {
     this.factory    = new PhonebookFactory();
     this.repository = new PhonebookRepository(this.factory);
     this.repository.AddPhone("Nakov", new string[] { "+359887333444" });
     this.repository.AddPhone("Minka", new string[] { "+359887333544" });
     this.repository.AddPhone("Ginka", new string[] { "+359887333774" });
     this.repository.AddPhone("Nakov", new string[] { "+359887333454" });
     this.repository.AddPhone("Nakov", new string[] { "+359887333434" });
     this.repository.AddPhone("Gichka", new string[] { "+359887333444" });
 }
 public PhonebookRepository(IPhonebookFactory factory)
 {
     this.factory  = factory;
     this.contacts = new SortedDictionary <string, IPhonebookEntry>();
 }
Exemple #3
0
 public void SetUp()
 {
     this.factory    = new PhonebookFactory();
     this.repository = new PhonebookRepository(this.factory);
 }