Beispiel #1
0
        public void SetUp()
        {
            TestAuthenticationAndAuthorization.SetTestUserToCurrentPrincipal();
            CustomResolver.Initiate();

            Controller = new AdminController
            {
                AdminRepository   = AdminRepository = Substitute.For <IAdminRepository>(),
                ControllerContext = ControllerContext,
                Repository        = Repository
            };
        }
        public void SetUp()
        {
            TestAuthenticationAndAuthorization.SetTestUserToCurrentPrincipal();
            CustomResolver.Initiate();

            var settingsProvider = Substitute.For <ISettingsProvider>();

            settingsProvider.GetSettings <FunnelWebSettings>().Returns(new FunnelWebSettings());
            Controller = new UploadController
            {
                FileRepository    = FileRepository = Substitute.For <IFileRepository>(),
                ControllerContext = ControllerContext,
                SettingsProvider  = settingsProvider
            };
        }