public async Task Where_with_nullable_properties2() { var query = "{ withNullableEntities (where: {path: 'Nullable', comparison: equal, value: '10'}){ id } }"; var entity1 = new WithNullableEntity(); var entity2 = new WithNullableEntity { Nullable = 10 }; await using var database = await sqlInstance.Build(); await RunQuery(database, query, null, null, false, new object[] { entity1, entity2 }); }
public async Task Where_with_nullable_properties2() { var query = "{ withNullableEntities (where: {path: 'Nullable', comparison: 'equal', value: '10'}){ id } }"; var entity1 = new WithNullableEntity(); var entity2 = new WithNullableEntity { Nullable = 10 }; var result = await RunQuery(query, null, true, null, entity1, entity2); ObjectApprover.VerifyWithJson(result); }
public async Task Where_with_nullable_properties1() { var query = "{ withNullableEntities (where: {path: 'Nullable', comparison: 'equal'}){ id } }"; var entity1 = new WithNullableEntity(); var entity2 = new WithNullableEntity { Nullable = 10 }; var result = await RunQuery(await sqlInstance.Build(), query, null, null, entity1, entity2); ObjectApprover.VerifyWithJson(result); }
public async Task Where_with_nullable_properties2() { var query = "{ withNullableEntities (where: {path: 'Nullable', comparison: 'equal', value: '10'}){ id } }"; var entity1 = new WithNullableEntity(); var entity2 = new WithNullableEntity { Nullable = 10 }; using var database = await sqlInstance.Build(); var result = await RunQuery(database, query, null, null, entity1, entity2); ObjectApprover.Verify(result); }
public async Task Where_with_nullable_properties2() { var queryString = "{ withNullableEntities (where: {path: 'Nullable', comparison: 'equal', value: '10'}){ id } }"; var entity1 = new WithNullableEntity { Id = Guid.Parse("00000000-0000-0000-0000-000000000001"), }; var entity2 = new WithNullableEntity { Id = Guid.Parse("00000000-0000-0000-0000-000000000002"), Nullable = 10 }; var result = await RunQuery(queryString, null, entity1, entity2); ObjectApprover.VerifyWithJson(result); }