Exemple #1
0
        public void ShouldResolveQueryUsingItsName()
        {
            QueryResolver resolver       = GetQueryResolver();
            IQuery        resolved_query = resolver.GetQuery("query");

            Assert.That(resolved_query.Name, Is.EqualTo("query"));
        }
Exemple #2
0
        public void ShoulReturnNoOpQueryExecutorWhenExecutorIsNotFound()
        {
            QueryResolver  resolver = GetQueryResolver();
            IQueryExecutor executor = resolver.GetQueryExecutor(Query.EmptyQuery);

            Assert.That(executor,
                        Is.EqualTo(NoOpQueryExecutor.StaticNoOpQueryExecutor));
        }