public async Task <IEnumerable <PostDTO> > FindValidAsync(Expression <Func <Post, bool> > predicate) { var posts = await _db.Posts.FindValidAsync(predicate); var postsDTO = PostMapper.ConvertToPostDTOCollection(posts); return(postsDTO); }
public void Mapper_ConvertToPostDTOCollection_should_throw_argument_null_exception_when_input_argument_is_null() { Assert.Throws <ArgumentNullException>(() => PostMapper.ConvertToPostDTOCollection(null)); }