Beispiel #1
0
        public void Get_ReturnsSplit()
        {
            var splitStub = new Split {
                Id = 1, Name = "Tomorrow"
            };

            _splitRepositoryMock.Setup(r => r.GetById(1)).Returns(splitStub);

            var split = _splitService.Get(1);

            Assert.Equal(splitStub.Id, split.Id);
        }
Beispiel #2
0
 public SplitDto Get([FromRoute] int id)
 {
     return(_mapper.Map <SplitDto>(_splitService.Get(id)));
 }