public async Task Startup_ShowUpdatingView_ShowAudioDramaListViewAsync() { var rootView = _mocker.GetMock <IRootView>(); await _systemUnderTest.Start(); rootView.Verify(x => x.Show(It.IsAny <IUpdatingView>())); rootView.Verify(x => x.Show(It.IsAny <IAudioDramaListView>())); }
protected override async void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Set our view from the "main" layout resource SetContentView(Resource.Layout.activity_main); var releaseDateService = new ReleaseDateService(); var filler = new ImageViewFiller(); var userNotifier = new ToastNotifier(this); var audioDramaListView = new AudioDramaListView(filler, releaseDateService, userNotifier); var audioDramaView = new AudioDramaView(filler); var rootView = this; var dtoCache = new DtoCache(); var userDataCache = new UserDataCache(); var shutdown = new AndroidShutdown(this); var uriInvoker = new UriInvoker(this); var clipboardService = new ClipboardService(this); var yesNoDialog = new YesNoDialog(this); var okDialog = new OkDialog(this); var updatingView = new UpdatingView(); _ddfGuide = new Core.DdfGuide( audioDramaListView, audioDramaView, rootView, dtoCache, userDataCache, shutdown, userNotifier, uriInvoker, clipboardService, yesNoDialog, okDialog, updatingView ); await _ddfGuide.Start(); ScheduleReleaseNotificationJob(); }