public TQuery Resolve <TQuery>() where TQuery : IQuery
 {
     return(_queryFactory.Resolve <TQuery>());
 }