BuildControllerAndDependencies() { var glossaryService = new Mock <IGlossaryService>(Strict); var controller = new GlossaryController(glossaryService.Object); return(controller, (glossaryService, CacheService)); }
private GlossaryController GetGlossaryController() { _mockGlossaryBusinessManager = new Mock <IGlossaryBusinessManager <Glossary> >(); var controller = new GlossaryController(_mockGlossaryBusinessManager.Object); controller.SetFakeControllerContext(); return(controller); }