public void SetUp()
 {
     Controller = new UploadController
                      {
                          FileRepository = FileRepository = Substitute.For<IFileRepository>(),
                          MimeHelper = MimeTypeLookup = Substitute.For<IMimeTypeLookup>(),
                          ControllerContext = ControllerContext
                      };
 }
        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
                                             };
        }
 public void SetUp()
 {
     var settingsProvider = Substitute.For<ISettingsProvider>();
     settingsProvider.GetSettings<FunnelWebSettings>().Returns(new FunnelWebSettings());
     Controller = new UploadController
                      {
                          FileRepository = FileRepository = Substitute.For<IFileRepository>(),
                          MimeHelper = MimeTypeLookup = Substitute.For<IMimeTypeLookup>(),
                          ControllerContext = ControllerContext,
                          SettingsProvider = settingsProvider
                      };
 }