public void ShouldResolveQueryUsingItsName() { QueryResolver resolver = GetQueryResolver(); IQuery resolved_query = resolver.GetQuery("query"); Assert.That(resolved_query.Name, Is.EqualTo("query")); }
public void ShoulReturnNoOpQueryExecutorWhenExecutorIsNotFound() { QueryResolver resolver = GetQueryResolver(); IQueryExecutor executor = resolver.GetQueryExecutor(Query.EmptyQuery); Assert.That(executor, Is.EqualTo(NoOpQueryExecutor.StaticNoOpQueryExecutor)); }