public async Task Find_ValidParameters_SetsCorrectResourceAndMethod() { var sut = new EmailRepository(_requestFactory); await sut.Find(0); _requestFactory.Received().Create("user/emails/{id}", Method.Get); }
public async Task Find_ValidParameters_AddsIdUrlSegment() { const uint expected = 0; var sut = new EmailRepository(_requestFactory); await sut.Find(expected); _request.Received().AddUrlSegment("id", expected); }