public GlossaryTermController(IGlossaryTermRepository repository) { _repository = repository; }
private static IEnumerable<GlossaryTerm> GetGlossaryTermsFromController(IGlossaryTermRepository repositoryStub) { var controller = new GlossaryTermController(repositoryStub); var result = controller.Index(); var glossaryTerms = (IEnumerable<GlossaryTerm>) result.Model; return glossaryTerms; }