Skip to content

Commit

Permalink
Update ResourcesRepositoryTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
killij committed Nov 10, 2023
1 parent 316e678 commit cd5049e
Showing 1 changed file with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,12 @@
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
//using static Childrens_Social_Care_CPD.GraphQL.Queries.SearchResourcesByTags;
using System.Collections.ObjectModel;
using System;
using Contentful.Core.Models.Management;
using System.Linq;
using Childrens_Social_Care_CPD.Controllers;
using Childrens_Social_Care_CPD.GraphQL.Queries;
using System.Net.Sockets;
using Microsoft.VisualBasic;

namespace Childrens_Social_Care_CPD_Tests.DataAccess;

Expand Down Expand Up @@ -253,26 +250,6 @@ public async Task GetSearchTagsAsync_Strips_Unwanted_Grouped_Tags()
actual.Any(x => x.TagName == "fooFoo").Should().BeFalse();
}


//public async Task<Tuple<Content, GetContentTags.ResponseType>> GetByIdAsync(string id, int depth = 10, CancellationToken cancellationToken = default)
//{
// var queryBuilder = QueryBuilder<Content>.New
// .ContentTypeIs("content")
// .Include(depth)
// .FieldEquals("fields.id", id);

// var tagsTask = _gqlClient
// .SendQueryAsync<GetContentTags.ResponseType>(GetContentTags.Query(id, _isPreview), cancellationToken)
// .ContinueWith(x => x.Result.Data);

// var contentTask = _cpdClient
// .GetEntries(queryBuilder, cancellationToken)
// .ContinueWith(x => x.Result.FirstOrDefault());

// await Task.WhenAll(contentTask, tagsTask);
// return Tuple.Create(contentTask.Result, tagsTask.Result);
//}

[Test]
public async Task GetByIdAsync_Queries_Tags_By_Id()
{
Expand Down

0 comments on commit cd5049e

Please sign in to comment.