BuildControllerAndDependencies()
        {
            var glossaryService = new Mock <IGlossaryService>(Strict);
            var controller      = new GlossaryController(glossaryService.Object);

            return(controller, (glossaryService, CacheService));
        }
示例#2
0
        private GlossaryController GetGlossaryController()
        {
            _mockGlossaryBusinessManager = new Mock <IGlossaryBusinessManager <Glossary> >();
            var controller = new GlossaryController(_mockGlossaryBusinessManager.Object);

            controller.SetFakeControllerContext();
            return(controller);
        }