Пример #1
0
 public void TestAddDuplicateService2()
 {
   ServiceProvider provider = new ServiceProvider();
   provider.Add<ILog>(new ServiceCreatorCallback<ILog>(ServiceRequested));
   ILog log1 = new NoLog();
   provider.Add<ILog>(log1);
 }
Пример #2
0
 public void TestAddDuplicateService1()
 {
   ServiceProvider provider = new ServiceProvider();
   ILog log1 = new NoLog();
   ILog log2 = new NoLog();
   provider.Add<ILog>(log1);
   provider.Add<ILog>(log2);
 }