Exemplo n.º 1
0
        public async Task GivenAnIdThatDoesNotExist_WhenGet_ThenNotFoundIsReturned()
        {
            _noteQueryService.Get(Arg.Any <Guid>()).Returns(Task.FromResult <Notes.Domain.Dto.Note>(null));

            var sut    = GetSut();
            var result = await sut.Get(Guid.NewGuid());

            result.Should().BeOfType <NotFoundResult>();
        }
Exemplo n.º 2
0
 public Task <IEnumerable <Note> > Get()
 {
     return(_noteQueryService.Get());
 }