Skip to main content

MockSharedObjectServices Class

Mock implementation of IChannelServices

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/test-runtime-utils/legacy.

For more information about our API support guarantees, see here.

Signature​

export declare class MockSharedObjectServices implements IChannelServices

Implements: IChannelServices

Constructors​

ConstructorAlertsDescription
(constructor)(contents)BetaConstructs a new instance of the MockSharedObjectServices class

Static Methods​

MethodAlertsReturn TypeDescription
createFromSummary(summaryTree)BetaMockSharedObjectServices

Properties​

PropertyAlertsTypeDescription
deltaConnectionBetaIDeltaConnection
objectStorageBetaMockObjectStorageService

Constructor Details​

(constructor)​

Constructs a new instance of the MockSharedObjectServices class

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

constructor(contents: {
[key: string]: string;
});

Parameters​

ParameterTypeDescription
contents{ [key: string]: string; }

Property Details​

deltaConnection​

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

deltaConnection: IDeltaConnection;

Type: IDeltaConnection

objectStorage​

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

objectStorage: MockObjectStorageService;

Type: MockObjectStorageService

Method Details​

createFromSummary​

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

static createFromSummary(summaryTree: ISummaryTree): MockSharedObjectServices;

Parameters​

ParameterTypeDescription
summaryTreeISummaryTree

Returns​

Return type: MockSharedObjectServices