示例#1
0
 public void SetupGetCollectionForInteractions(List <Interaction> returnCollection)
 {
     if (returnCollection == null)
     {
         InteractionRepository.Setup(r => r.GetCollection(It.IsAny <string>())).Returns <IEnumerable <Interaction> >(null).Verifiable();
     }
     else
     {
         InteractionRepository.Setup(r => r.GetCollection(It.IsAny <string>())).Returns(returnCollection).Verifiable();
     }
 }
示例#2
0
 public void SetupGetCollectionForInteractionsToThrowException(Exception exception)
 {
     InteractionRepository.Setup(r => r.GetCollection(It.IsAny <string>())).Throws(exception).Verifiable();
 }