Пример #1
0
        public void should_return_correct_results_for_microsoft_query()
        {
            var c = new FormatsController();

            var result = c.Get("microsoft");

            result.SelectMany(g => g.Formats)
                .Should().OnlyContain(f => f.Name.ToLowerInvariant().Contains("microsoft"));
        }
Пример #2
0
        public void should_return_all_formats_when_query_is_null()
        {
            var c = new FormatsController();

            var result = c.Get(null);

            result.Should().Contain(g => g.Name == "Database");
            result.Should().Contain(g => g.Name == "Geospatial");
            result.Count.Should().BeGreaterThan(5);
        }