Class FunctionMock
Mock function definition. Mocks must refer to a function declared by the target service. The type of the
function args and result will be inferred at test time. If either the arg or result values are not compatible
with function type declaration, the request will be considered invalid. More than one FunctionMock
may be
provided for a given function name so long as the Arg
matchers are distinct. There may be only one function
for a given overload where all Arg
values are Arg.any_value
.
Implements
Inherited Members
Namespace: Google.Apis.FirebaseRules.v1.Data
Assembly: Google.Apis.FirebaseRules.v1.dll
Syntax
public class FunctionMock : IDirectResponseSchema
Properties
Args
The list of Arg
values to match. The order in which the arguments are provided is the order in which they
must appear in the function invocation.
Declaration
[JsonProperty("args")]
public virtual IList<Arg> Args { get; set; }
Property Value
Type | Description |
---|---|
IList<Arg> |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Function
The name of the function. The function name must match one provided by a service declaration.
Declaration
[JsonProperty("function")]
public virtual string Function { get; set; }
Property Value
Type | Description |
---|---|
string |
Result
The mock result of the function call.
Declaration
[JsonProperty("result")]
public virtual Result Result { get; set; }
Property Value
Type | Description |
---|---|
Result |