Beispiel #1
0
        public async Task Can_call_single_operation_in_transaction()
        {
            Assert.That(await typedClient.GetValueAsync(Key), Is.Null);

            await using (var trans = await typedClient.CreateTransactionAsync())
            {
                trans.QueueCommand(r => r.SetValueAsync(Key, model));

                await trans.CommitAsync();
            }

            modelFactory.AssertIsEqual(await typedClient.GetValueAsync(Key), model);
        }