Show / Hide Table of Contents

Class EmptyMocks

Inheritance
object
EmptyMocks
Implements
IMocks
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Pulumi.Testing
Assembly: Pulumi.dll
Syntax
public class EmptyMocks : IMocks

Methods

View Source

CallAsync(MockCallArgs)

Invoked when the program needs to call a provider to load data (e.g., to retrieve an existing resource).

Declaration
public Task<object> CallAsync(MockCallArgs args)
Parameters
Type Name Description
MockCallArgs args

MockCallArgs

Returns
Type Description
Task<object>

Invocation result, can be either a POCO or a dictionary bag.

View Source

NewResourceAsync(MockResourceArgs)

Invoked when a new resource is created by the program.

Declaration
public Task<(string? id, object state)> NewResourceAsync(MockResourceArgs args)
Parameters
Type Name Description
MockResourceArgs args

MockResourceArgs

Returns
Type Description
Task<(string id, object state)>

A tuple of a resource identifier and resource state. State can be either a POCO or a dictionary bag. The returned ID may be null for component resources.

Implements

IMocks

Version 3.106.2

  • View Source
Back to top Copyright 2016-2023, Pulumi Corporation.