public async Task GetAll_ValidParameters_SetsCorrectResourceAndMethod()
        {
            var sut = new LabelRepository(_requestFactory);

            await sut.GetAll(0);

            _requestFactory.Received().Create("projects/{projectId}/labels", Method.Get);
        }
        public async Task GetAll_ValidParameters_AddsProjectIdUrlSegment()
        {
            const uint expected = 0;
            var        sut      = new LabelRepository(_requestFactory);

            await sut.GetAll(expected);

            _request.Received().AddUrlSegment("projectId", expected);
        }
Пример #3
0
 public List <Label> GetAll()
 {
     return(_labelRepository.GetAll());
 }