public async Task GivenAMeetupEventId_WithRSVPs_ThenResultsShouldHaveValues()
        {
            var sut   = new AttendeeMeetupComTileProvider(Settings.Default);
            var tiles = await sut.GetTilesAsync();

            Assert.That(tiles.Count, Is.GreaterThan(0));
        }
Пример #2
0
        void MainWindow_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.Key)
            {
            case Key.Space:
            {
                var vm = DataContext as MainWindowViewModel;
                vm?.StartNextMode();
                break;
            }

            case Key.Escape:
            {
                var vm = DataContext as MainWindowViewModel;
                vm?.Restart();

                while (Canvas.Children.Count > 0)
                {
                    Canvas.Children.Remove(Canvas.Children[0]);
                }

                break;
            }

            case Key.F5:
            {
                var sourceTileProvider = new AttendeeMeetupComTileProvider(Settings.Default);
                var targetTileProvider = new AttendeeFileListTileProvider();
                var dialogServer       = new DialogService();
                var wnd = new MeetupDotComSync {
                    DataContext = new MeetupDotComSyncViewModel(sourceTileProvider, targetTileProvider, dialogServer)
                };
                wnd.ShowDialog();
                break;
            }
            }
        }