Пример #1
0
        public void Initialize()
        {
            var debuggingInfoLogger = Substitute.For <IDebuggingInfoLogger>();

            _analyticsLogger = Substitute.For <IAnalyticsLogger>();
            var remoteContentDownloader = Substitute.For <IRemoteContentDownloader>();
            var appInfo = new AppInfo("valid_url");

            _appCast             = new MockRemoteAppcast(new Version(1, 0));
            _mainWindowViewModel = new MockMainWindowViewModel(appInfo, debuggingInfoLogger, remoteContentDownloader, _analyticsLogger);
        }
Пример #2
0
        public void Initialize()
        {
            var debuggingInfoLogger = Substitute.For <IDebuggingInfoLogger>();

            _analyticsLogger = Substitute.For <IAnalyticsLogger>();
            var remoteContentDownloader = Substitute.For <IRemoteContentDownloader>();
            var appInfo = new AppInfo("valid_url");

            _channel = new MockChannel(1, "1.0");
            AssemblyInjector.Inject();
            _mainWindowViewModel = new MockMainWindowViewModel(appInfo, debuggingInfoLogger, remoteContentDownloader,
                                                               _analyticsLogger);
        }