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);
        }
Example #2
0
 public Task <List <IceCream> > Call(GetAllIceCreamsArgs args)
 {
     return(Repository.GetAllIceCreams());
 }