public async Task GetAllIceCreamTest1() { // Arrange Mock.Arrange(() => TRepository.GetAllIceCreams()).TaskResult(TIceCreams); GetAllIceCreams getAllIceCreams = new GetAllIceCreams(TRepository); GetAllIceCreamsArgs args = new GetAllIceCreamsArgs(); // Act var result = await getAllIceCreams.Call(args); // Assert Assert.NotEmpty(result); Assert.Equal(TIceCreams.Count, result.Count); }
public Task <List <IceCream> > Call(GetAllIceCreamsArgs args) { return(Repository.GetAllIceCreams()); }