public void Setup()
        {
            CustomResolver.Initiate();

            AdminController = new WikiAdminController
            {
                Repository = Repository = Substitute.For<IRepository>(),
                ControllerContext = ControllerContext = ControllerContext
            };
        }
        public void Setup()
        {
            AdminController = new WikiAdminController
                                  {
                                      Repository = Repository = Substitute.For<IRepository>(),
                                      SpamChecker = SpamChecker = Substitute.For<ISpamChecker>(),
                                      ControllerContext = ControllerContext = ControllerContext
                                  };

            Identity = Substitute.For<IIdentity>();
            User = Substitute.For<IPrincipal>();
            User.Identity.Returns(Identity);
            ControllerContext.HttpContext.User.Returns(User);
        }