Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public async void GetByIdAsync(int id) { var track = new Track(); _trackRepositoryMock.Setup(r => r.GetByIdAsync(id)).Returns(Task.FromResult(track)); var result = await _trackService.GetByIdAsync(id); Assert.NotNull(result); _trackRepositoryMock.Verify(x => x.GetByIdAsync(id), Times.Once()); }