Exemple #1
0
 public void Setup()
 {
     _foundIds = Lists.NewList <IEnumerable <string> >();
     _log      = Mock.Of <IIdReaderLogger>();
     Mock.Get(_log)
     .Setup(l => l.FoundIds(It.IsAny <IEnumerable <string> >()))
     .Callback <IEnumerable <string> >(s => _foundIds.Add(s));
     _sut = new IdReader(_log);
 }
 public IdReader(IIdReaderLogger log)
 {
     _log = log;
 }