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(); } }
public void SetupGetCollectionForInteractionsToThrowException(Exception exception) { InteractionRepository.Setup(r => r.GetCollection(It.IsAny <string>())).Throws(exception).Verifiable(); }