public async Task NamedId() { var query = @" { namedEntities (ids: '00000000-0000-0000-0000-000000000001') { property } }"; var entity1 = new NamedIdEntity { NamedId = Guid.Parse("00000000-0000-0000-0000-000000000001"), Property = "Value1" }; var entity2 = new NamedIdEntity { Property = "Value2" }; using var database = await sqlInstance.Build(); var result = await RunQuery(database, query, null, null, entity1, entity2); ObjectApprover.Verify(result); }
public async Task NamedId() { var query = @" { namedEntities (ids: '00000000-0000-0000-0000-000000000001') { property } }"; var entity1 = new NamedIdEntity { NamedId = Guid.Parse("00000000-0000-0000-0000-000000000001"), Property = "Value1" }; var entity2 = new NamedIdEntity { Property = "Value2" }; await using var database = await sqlInstance.Build(); await RunQuery(database, query, null, null, false, new object[] { entity1, entity2 }); }
public async Task NamedId() { var query = @" { namedEntities (ids: '00000000-0000-0000-0000-000000000001') { property } }"; var entity1 = new NamedIdEntity { NamedId = Guid.Parse("00000000-0000-0000-0000-000000000001"), Property = "Value1" }; var entity2 = new NamedIdEntity { Property = "Value2" }; var result = await RunQuery(query, null, true, null, entity1, entity2); ObjectApprover.VerifyWithJson(result); }