public async Task CustomType() { var queryString = @" { customType { property } }"; var entity1 = new CustomTypeEntity { Id = Guid.Parse("00000000-0000-0000-0000-000000000001"), Property = long.MaxValue, }; var entity2 = new CustomTypeEntity { Id = Guid.Parse("00000000-0000-0000-0000-000000000002"), Property = 3, }; var result = await RunQuery(queryString, null, entity1, entity2); ObjectApprover.VerifyWithJson(result); }
public async Task CustomType() { var query = @" { customType { property } }"; var entity1 = new CustomTypeEntity { Property = long.MaxValue }; var entity2 = new CustomTypeEntity { Property = 3 }; using var database = await sqlInstance.Build(); var result = await RunQuery(database, query, null, null, entity1, entity2); ObjectApprover.Verify(result); }
public async Task CustomType() { var query = @" { customType (orderBy: {path: ""property""}) { property } }"; var entity1 = new CustomTypeEntity { Property = long.MaxValue }; var entity2 = new CustomTypeEntity { Property = 3 }; await using var database = await sqlInstance.Build(); var result = await RunQuery(database, query, null, null, entity1, entity2); await Verifier.Verify(result); }
public async Task CustomType() { var query = @" { customType (orderBy: {path: ""property""}) { property } }"; var entity1 = new CustomTypeEntity { Property = long.MaxValue }; var entity2 = new CustomTypeEntity { Property = 3 }; await using var database = await sqlInstance.Build(); await RunQuery(database, query, null, null, false, new object[] { entity1, entity2 }); }
public async Task CustomType() { var query = @" { customType { property } }"; var entity1 = new CustomTypeEntity { Property = long.MaxValue }; var entity2 = new CustomTypeEntity { Property = 3 }; var result = await RunQuery(query, null, true, null, entity1, entity2); ObjectApprover.VerifyWithJson(result); }