public async Task SearchesTheName()
        {
            var interactor = new GetTagsAutocompleteSuggestions(dataSource, new[] { "50" });

            var suggestions = await interactor.Execute();

            suggestions.Should().HaveCount(1)
            .And.AllBeOfType <TagSuggestion>();
        }
        public async Task OnlyDisplaysResultsThatHaveAtLeastOneMatchOnEveryWordTyped()
        {
            var interactor = new GetTagsAutocompleteSuggestions(dataSource, new[] { "5", "2" });

            var suggestions = await interactor.Execute();

            suggestions.Single().Should().BeOfType <TagSuggestion>()
            .Which.Name.Should().Be("52");
        }
        public async Task SuggestsAllTagsWhenThereIsNoStringToSearch()
        {
            var interactor = new GetTagsAutocompleteSuggestions(dataSource, new string[0]);

            var suggestions = await interactor.Execute();

            suggestions.Should().HaveCount(Tags.Count())
            .And.AllBeOfType <TagSuggestion>();
        }