Show / Hide Table of Contents

Class MockTableStorageClient<TElement>

Implementation of the ITableStorageClient interface by using Mock Data.

Inheritance
System.Object
TableStorageClient<TElement>
MockTableStorageClient<TElement>
Implements
ITableStorageClient<TElement>
Inherited Members
TableStorageClient<TElement>.Config
TableStorageClient<TElement>.GetAsync(String, String)
TableStorageClient<TElement>.AnyAsync(String, String)
TableStorageClient<TElement>.ListAsync(String)
TableStorageClient<TElement>.InsertAsync(TElement)
TableStorageClient<TElement>.UpdateAsync(TElement, TableStorageStrategy)
TableStorageClient<TElement>.DeleteAsync(String, String)
TableStorageClient<TElement>.DeleteAsync(TElement)
TableStorageClient<TElement>.CreateTableIfNotExistsAsync()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Celerik.NetCore.Util
Assembly: cs.temp.dll.dll
Syntax
public class MockTableStorageClient<TElement> : TableStorageClient<TElement>, ITableStorageClient<TElement> where TElement : ITableEntity, new()
Type Parameters
Name Description
TElement

The type of table entity.

Constructors

MockTableStorageClient(TableStorageConfig)

Declaration
public MockTableStorageClient(TableStorageConfig config)
Parameters
Type Name Description
TableStorageConfig config

Methods

DeleteIfExistsAsync()

Delete the table if exists.

Declaration
public override Task<bool> DeleteIfExistsAsync()
Returns
Type Description
Task<System.Boolean>

The task object representing the asynchronous operation.

Overrides
Celerik.NetCore.Util.TableStorageClient<TElement>.DeleteIfExistsAsync()

ExecuteAsync(TableOperation)

Executes the passed-in table operation.

Declaration
protected override Task<TableResult> ExecuteAsync(TableOperation operation)
Parameters
Type Name Description
TableOperation operation

The operation to execute.

Returns
Type Description
Task<TableResult>

The task object representing the asynchronous operation.

Overrides
Celerik.NetCore.Util.TableStorageClient<TElement>.ExecuteAsync(TableOperation)

ExecuteAsync(TableQuery<TElement>, TableContinuationToken)

Executes the passed-in table query as a segment.

Declaration
protected override Task<TableQuerySegment<TElement>> ExecuteAsync(TableQuery<TElement> query, TableContinuationToken token)
Parameters
Type Name Description
TableQuery<TElement> query

The tabe query.

TableContinuationToken token

The continuation token.

Returns
Type Description
Task<TableQuerySegment<TElement>>

The task object representing the asynchronous operation.

Overrides
Celerik.NetCore.Util.TableStorageClient<TElement>.ExecuteAsync(TableQuery<TElement>, TableContinuationToken)

Merge<T>(T, T)

Merges the source object into the target object.

Declaration
public static T Merge<T>(T target, T source)
Parameters
Type Name Description
T target

The target object.

T source

The source object.

Returns
Type Description
T

The merged object.

Type Parameters
Name Description
T

The type of objects to be merged.

Implements

ITableStorageClient<TElement>
In This Article
Back to top Generated by DocFX