/// <summary>
 /// Build the query and execute it on database.
 /// </summary>
 /// <param name="context">The GraphQL Context</param>
 /// <returns></returns>
 private void GetFromDatabase(ResolveFieldContext <object> context, out List <TestEntity> items)
 {
     items = TestEntity.Get();
     this.databaseRetrieves++;
 }
 /// <summary>
 /// Build the query and execute it on database.
 /// </summary>
 /// <param name="context">The GraphQL Context</param>
 /// <param name="id">     The entity identifier</param>
 /// <returns></returns>
 private void GetFromDatabaseById(object id, ResolveFieldContext <object> context, out TestEntity item)
 {
     item = TestEntity.Get().FirstOrDefault();
     this.databaseRetrieves++;
 }
 /// <summary>
 /// Get an item by its id from a given list.
 /// </summary>
 /// <param name="items"> </param>
 /// <param name="id">    </param>
 /// <param name="result"></param>
 private void GetByIdFromList(List <TestEntity> items, object id, out TestEntity result) => result = items.FirstOrDefault(x => x.Id == (int)id);