コード例 #1
0
 public void SetUp()
 {
     Controller = new AdminController
                      {
                          AdminRepository = AdminRepository = Substitute.For<IAdminRepository>(),
                          ControllerContext = CreateControllerContext()
                      };
 }
コード例 #2
0
        public void SetUp()
        {
            TestAuthenticationAndAuthorization.SetTestUserToCurrentPrincipal();
            CustomResolver.Initiate();

            Controller = new AdminController
                                             {
                                                 AdminRepository = AdminRepository = Substitute.For<IAdminRepository>(),
                                                 ControllerContext = ControllerContext,
                                                 Repository = Repository
                                             };
        }