コード例 #1
0
        public async Task Delete_ValidParameters_SetsCorrectResourceAndMethod()
        {
            var sut = new DeployKeyRepository(_requestFactory);

            await sut.Delete(0, 0);

            _requestFactory.Received().Create("projects/{projectId}/keys/{keyId}", Method.Delete);
        }
コード例 #2
0
        public async Task Delete_ValidParameters_AddsProjectIdUrlSegment()
        {
            const uint expected = 0;
            var        sut      = new DeployKeyRepository(_requestFactory);

            await sut.Delete(expected, 0);

            _request.Received().AddUrlSegment("projectId", expected);
        }