public void Setup() { CustomResolver.Initiate(); AdminController = new WikiAdminController { Repository = Repository = Substitute.For <IRepository>(), ControllerContext = ControllerContext = ControllerContext }; }
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 }; }