Example #1
0
    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);
    }
Example #2
0
    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);
    }
Example #3
0
    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);
    }
Example #4
0
    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);
    }