public async Task AddAsync(string field)
        {
            var command   = CommandBuilder.BuildAddIndex(collectionName, field);
            var rawResult = await sender.SendAsync(command).ConfigureAwait(false);

            ResultParser.Parse(rawResult);
        }
        public async Task AnyRequest_ReturnsError_OnInvalidRequest(string command)
        {
            var result = await sender.SendAsync(command).ConfigureAwait(false);

            Assert.That(result, Does.Contain("error"));
            Assert.That(result, Does.Contain(Errors.InvalidRequest));
        }
Exemple #3
0
        public async Task InsertAsync(string id, Dictionary <string, string> document)
        {
            var command   = CommandBuilder.BuildInsert(collectionName, id, document);
            var rawResult = await sender.SendAsync(command).ConfigureAwait(false);

            ResultParser.Parse(rawResult);
        }