Esempio n. 1
0
        public override Task <ItemResponse <T> > DeleteItemAsync <T>(string id, PartitionKey partitionKey, ItemRequestOptions requestOptions = null, CancellationToken cancellationToken = default)
        {
            var returnValue = new CosmosItemResponseMock <T>();

            return(Task.FromResult((ItemResponse <T>)returnValue));
        }
Esempio n. 2
0
        public override Task <ItemResponse <T> > UpsertItemAsync <T>(T item, PartitionKey?partitionKey = null, ItemRequestOptions requestOptions = null, CancellationToken cancellationToken = default)
        {
            var returnValue = new CosmosItemResponseMock <T>();

            return(Task.FromResult((ItemResponse <T>)returnValue));
        }