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

Constructor Alerts Description
(constructor)(contents) Beta Constructs a new instance of the MockSharedObjectServices class

Static Methods

Method Alerts Return Type Description
createFromSummary(summaryTree) Beta MockSharedObjectServices

Properties

Property Alerts Type Description
deltaConnection Beta IDeltaConnection
objectStorage Beta MockObjectStorageService

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

Parameter Type Description
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

Parameter Type Description
summaryTree ISummaryTree

Returns

Return type: MockSharedObjectServices