public async Task GetAll_ValidParameters_SetsCorrectResourceAndMethod() { var sut = new DeployKeyRepository(_requestFactory); await sut.GetAll(0); _requestFactory.Received().Create("projects/{projectId}/keys", Method.Get); }
public async Task GetAll_ValidParameters_AddsProjectIdUrlSegment() { const uint expected = 0; var sut = new DeployKeyRepository(_requestFactory); await sut.GetAll(expected); _request.Received().AddUrlSegment("projectId", expected); }