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); }
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); }