コード例 #1
0
        public async Task GetByUuidAndTypeAsync(KeyType keyType)
        {
            _keyProviderMock.Setup(kp => kp.GetByUuidAndTypeAsync(testGuid, keyType, It.IsAny <CancellationToken>()))
            .ReturnsAsync(new Key());

            var get = await _keyController.Get(testGuid, keyType, new CancellationToken());

            Assert.IsType <OkObjectResult>(get);
        }