public void SetUp() { _view = MockRepository.GenerateMock<ICradiatorView>(); _configSettings = MockRepository.GenerateMock<IConfigSettings>(); _configSettings.Expect(c => c.ProjectNameRegEx).Return(".*").Repeat.Any(); _kernel = new StandardKernel(new CradiatorNinjaModule(_view, _configSettings)); _factory = _kernel.Get<IWebClientFactory>(); _kernel.Get<BuildDataTransformer>(); }
public CountdownTimer(IConfigSettings configSettings, ICradiatorView view) { _view = view; _isSwitchedOn = configSettings.ShowCountdown; PollFrequency = configSettings.PollFrequencyTimeSpan; _countdownTimer = new DispatcherTimer { Interval = OneSecond }; _countdownTimer.Tick += CountdownTimer_Tick; Reset(); }
public CountdownTimer(IConfigSettings configSettings, ICradiatorView view) { _view = view; _isSwitchedOn = configSettings.ShowCountdown; PollFrequency = configSettings.PollFrequencyTimeSpan; _countdownTimer = new DispatcherTimer { Interval = OneSecond }; _countdownTimer.Tick += CountdownTimer_Tick; Reset(); }
public void SetUp() { _view = MockRepository.GenerateMock <ICradiatorView>(); _configSettings = MockRepository.GenerateMock <IConfigSettings>(); _configSettings.Expect(c => c.ProjectNameRegEx).Return(".*").Repeat.Any(); _configSettings.Expect(c => c.CategoryRegEx).Return(".*").Repeat.Any(); _configSettings.Expect(c => c.ServerNameRegEx).Return(".*").Repeat.Any(); _kernel = new StandardKernel(new CradiatorNinjaModule(_view, _configSettings)); _factory = _kernel.Get <IWebClientFactory>(); _kernel.Get <BuildDataTransformer>(); }
public SettingsWindow(IConfigSettings configSettings, ICradiatorView view, ISpeechSynthesizer speechSynth) { _configSettings = configSettings; _view = view; _speechSynth = speechSynth; InitializeComponent(); SetBindings(); _view.Closing += ((sender, e) => Close()); _view.Activated += ((sender, e) => Owner = view.Window); Closing += SettingsWindow_Closing; }
public SettingsWindow(IConfigSettings configSettings, ICradiatorView view, ISpeechSynthesizer speechSynth) { _configSettings = configSettings; _view = view; _speechSynth = speechSynth; InitializeComponent(); SetBindings(); _view.Closing += ((sender, e) => Close()); _view.Activated += ((sender, e) => Owner = view.Window); Closing += SettingsWindow_Closing; }
public void SetUp() { _view = MockRepository.GenerateMock <ICradiatorView>(); _date = MockRepository.GenerateStub <IDateTimeNow>(); _pollFrequency = TenSeconds; _timer = new CountdownTimer(new ConfigSettings { PollFrequency = 10 }, _view) { Date = _date }; }
public CradiatorPresenter(ICradiatorView view, IConfigSettings configSettings, IConfigFileWatcher configFileWatcher, ISkinLoader skinLoader, ConfigChangeHandlerFarm changeHandlerFarm, IScreenUpdater screenUpdater, InputBindingAdder inputBindingAdder) { _view = view; view.Presenter = this; _configSettings = configSettings; _configFileWatcher = configFileWatcher; _screenUpdater = screenUpdater; _skinLoader = skinLoader; _changeHandlerFarm = changeHandlerFarm; inputBindingAdder.AddBindings(); configSettings.AddObserver(this); }
public CradiatorPresenter(ICradiatorView view, IConfigSettings configSettings, IConfigFileWatcher configFileWatcher, ISkinLoader skinLoader, ConfigChangeHandlerFarm changeHandlerFarm, IScreenUpdater screenUpdater, InputBindingAdder inputBindingAdder) { _view = view; view.Presenter = this; _configSettings = configSettings; _configFileWatcher = configFileWatcher; _screenUpdater = screenUpdater; _skinLoader = skinLoader; _changeHandlerFarm = changeHandlerFarm; inputBindingAdder.AddBindings(); configSettings.AddObserver(this); }
public void SetUp() { _view = MockRepository.GenerateMock<ICradiatorView>(); _configSettings = MockRepository.GenerateMock<IConfigSettings>(); _configSettings.Expect(c => c.ProjectNameRegEx).Return(".*").Repeat.Any(); _configSettings.Expect(c => c.CategoryRegEx).Return(".*").Repeat.Any(); _skinLoader = MockRepository.GenerateMock<ISkinLoader>(); _screenUpdater = MockRepository.GenerateMock<IScreenUpdater>(); _configFileWatcher = MockRepository.GenerateMock<IConfigFileWatcher>(); var bootstrapper = new Bootstrapper(_configSettings, _view); _kernel = bootstrapper.CreateKernel(); _kernel.Rebind<ISkinLoader>().ToConstant(_skinLoader); _kernel.Rebind<IScreenUpdater>().ToConstant(_screenUpdater); _kernel.Rebind<IConfigFileWatcher>().ToConstant(_configFileWatcher); }
public void SetUp() { _view = Create.Mock <ICradiatorView>(); _configSettings = Create.Mock <IConfigSettings>(); _configSettings.Expect(c => c.ProjectNameRegEx).Return(".*").Repeat.Any(); _configSettings.Expect(c => c.CategoryRegEx).Return(".*").Repeat.Any(); _skinLoader = Create.Mock <ISkinLoader>(); _screenUpdater = Create.Mock <IScreenUpdater>(); _configFileWatcher = Create.Mock <IConfigFileWatcher>(); var bootstrapper = new Bootstrapper(_configSettings, _view); _kernel = bootstrapper.CreateKernel(); _kernel.Rebind <ISkinLoader>().ToConstant(_skinLoader); _kernel.Rebind <IScreenUpdater>().ToConstant(_screenUpdater); _kernel.Rebind <IConfigFileWatcher>().ToConstant(_configFileWatcher); }
public ScreenUpdater(ICradiatorView view, DiscJockey discJockey, ICountdownTimer countdownTimer, IPollTimer pollTimer, BuildDataFetcher buildDataFetcher, BuildDataTransformer buildDataTransformer, FetchExceptionHandler fetchExceptionHandler, BackgroundWorker worker) { _view = view; _discJockey = discJockey; _countdownTimer = countdownTimer; _pollTimer = pollTimer; _pollTimer.Tick = (sender, e) => Update(); _fetcher = buildDataFetcher; _fetchExceptionHandler = fetchExceptionHandler; _transformer = buildDataTransformer; _worker = worker; worker.RunWorkerCompleted += DataFetched; worker.DoWork += FetchData; }
public ScreenUpdater(ICradiatorView view, DiscJockey discJockey, ICountdownTimer countdownTimer, IPollTimer pollTimer, IConfigSettings configSettings, BuildDataFetcher buildDataFetcher, BuildDataTransformer transformer, FetchExceptionHandler fetchExceptionHandler, BackgroundWorker worker) { _view = view; _discJockey = discJockey; _countdownTimer = countdownTimer; _pollTimer = pollTimer; _configSettings = configSettings; _pollTimer.Tick = (sender, e) => PollTimeup(); _fetcher = buildDataFetcher; _fetchExceptionHandler = fetchExceptionHandler; _transformer = transformer; SetLocalValuesFromConfig(configSettings); _configSettings.AddObserver(this); _worker = worker; worker.DoWork += FetchData; worker.RunWorkerCompleted += DataFetched; }
public ScreenUpdater(ICradiatorView view, DiscJockey discJockey, ICountdownTimer countdownTimer, IPollTimer pollTimer, IConfigSettings configSettings, BuildDataFetcher buildDataFetcher, BuildDataTransformer transformer, FetchExceptionHandler fetchExceptionHandler, BackgroundWorker worker) { _view = view; _discJockey = discJockey; _countdownTimer = countdownTimer; _pollTimer = pollTimer; _configSettings = configSettings; _pollTimer.Tick = (sender, e) => PollTimeup(); _fetcher = buildDataFetcher; _fetchExceptionHandler = fetchExceptionHandler; _transformer = transformer; SetLocalValuesFromConfig(configSettings); _configSettings.AddObserver(this); _worker = worker; worker.DoWork += FetchData; worker.RunWorkerCompleted += DataFetched; }
public ShowSettingsCommand(ICradiatorView view, ISettingsWindow settingsWindow) { _view = view; _settingsWindow = settingsWindow; }
public void SetUp() { _view = MockRepository.GenerateMock<ICradiatorView>(); _timer = MockRepository.GenerateMock<ICountdownTimer>(); _changeHandler = new ShowCountdownChangeHandler(_timer, _view); }
public FullscreenCommand(ICradiatorView view) { _view = view; }
public ShowCountdownChangeHandler(ICountdownTimer countdownTimer, ICradiatorView view) { _countdownTimer = countdownTimer; _view = view; }
public void SetUp() { _view = MockRepository.GenerateMock<ICradiatorView>(); _settingsWindow = MockRepository.GenerateMock<ISettingsWindow>(); }
public Bootstrapper(IConfigSettings configSettings, ICradiatorView view) { _configSettings = configSettings; _view = view; }
public void SetUp() { _view = Create.Mock <ICradiatorView>(); }
public FullscreenCommand(ICradiatorView view) { _view = view; }
public Bootstrapper(IConfigSettings configSettings, ICradiatorView view) { _configSettings = configSettings; _view = view; }
public InputBindingAdder(ICradiatorView view, CommandContainer commandContainer) { _view = view; _commandContainer = commandContainer; }
public void SetUp() { _view = MockRepository.GenerateMock <ICradiatorView>(); _settingsWindow = MockRepository.GenerateMock <ISettingsWindow>(); }
public SkinLoader(ICradiatorView view, SkinResourceLoader skinResourceLoader) { _view = view; _skinResourceLoader = skinResourceLoader; }
public RefreshCommand(ICradiatorView view) { _view = view; }
public void SetUp() { _view = Create.Mock<ICradiatorView>(); _timer = Create.Mock<ICountdownTimer>(); _changeHandler = new ShowCountdownChangeHandler(_timer, _view); }
public RefreshCommand(ICradiatorView view) { _view = view; }
public void SetUp() { _view = Create.Mock<ICradiatorView>(); }
public CradiatorNinjaModule(ICradiatorView view, IConfigSettings settings) { _view = view; _configSettings = settings; }
public ShowCountdownChangeHandler(ICountdownTimer countdownTimer, ICradiatorView view) { _countdownTimer = countdownTimer; _view = view; }
public FetchExceptionHandler(ICradiatorView view) { _view = view; }
public InputBindingAdder(ICradiatorView view, CommandContainer commandContainer) { _view = view; _commandContainer = commandContainer; }
public FetchExceptionHandler(ICradiatorView view) { _view = view; }
public MessageWindow(ICradiatorView view) : this() { _mainView = view; }
public void SetUp() { _view = Create.Mock <ICradiatorView>(); _timer = Create.Mock <ICountdownTimer>(); _changeHandler = new ShowCountdownChangeHandler(_timer, _view); }
public ShowSettingsCommand(ICradiatorView view, ISettingsWindow settingsWindow) { _view = view; _settingsWindow = settingsWindow; }
public void SetUp() { _view = MockRepository.GenerateMock<ICradiatorView>(); _date = MockRepository.GenerateStub<IDateTimeNow>(); _pollFrequency = TenSeconds; _timer = new CountdownTimer(new ConfigSettings { PollFrequency = 10 }, _view) { Date = _date }; }
public SkinLoader(ICradiatorView view, SkinResourceLoader skinResourceLoader) { _view = view; _skinResourceLoader = skinResourceLoader; }
public MessageWindow(ICradiatorView view) : this() { _mainView = view; }
public CradiatorNinjaModule(ICradiatorView view, IConfigSettings settings) { _view = view; _configSettings = settings; }