Пример #1
0
 private CreatingObjectIsRaisedReturn CreatingObjectIsRaised(IParser parser)
 {
     CreatingObjectIsRaisedReturn ret = new CreatingObjectIsRaisedReturn();
     parser.CreatingObject += delegate(string type)
     {
         ret.TimesRaised++;
         ret.Type = type;
     };
     return ret;
 }
Пример #2
0
 protected CreatingObjectIsRaisedReturn CreatingObjectIsRaised()
 {
     CreatingObjectIsRaisedReturn ret = new CreatingObjectIsRaisedReturn();
     Parser.CreatingObject += delegate(string type)
     {
         ret.TimesRaised++;
         ret.Type = type;
     };
     return ret;
 }