Ejemplo n.º 1
0
        private static async Task VerifyBatchOperationAuthFailure(IRingMasterRequestHandler ringMaster, params Op[] operations)
        {
            IReadOnlyList <OpResult> results = await ringMaster.Batch(operations);

            Assert.AreEqual(operations.Length, results.Count);
            foreach (OpResult result in results)
            {
                Assert.AreEqual(RingMasterException.Code.Authfailed, result.ErrCode);
            }
        }