public GetLatestWallpapersTests() { _output = new Mock <IGetLatestWallpapersOutputPort>(); _clientMock = new Mock <IWallhavenClient>(); _wallpaperProvider = new WallpaperProvider(_clientMock.Object); _useCase = new GetLatestWallpapersUseCase(_wallpaperProvider, _output.Object); }
public MainWindowViewModel(IGetLatestWallpapersUseCase useCase, IGetLatestWallpapersOutputPort output, UrlImageConverter imgConverter, IWallpaperSetter wallpaperSetter) { _useCase = useCase; _output = (LatestWallpapersPresenter)output; _imgConverter = imgConverter; _wallpaperSetter = wallpaperSetter; _sorts = new string[] { "Latest", "Top (1 day)", "Top (3 days)", "Top (1 week)", "Top (1 month)", "Top (3 months)", "Top (6 months)", "Top (1 year)" }; _selectedSort = _sorts.First(); }