Esempio n. 1
0
        public async Task GetPostsByAuthorId_Test()
        {
            //Arrange
            _postAppService = LocalIocManager.Resolve <IPostAppService>();

            var authorId = UsingDbContext <Post>(a => a.Post.FirstOrDefault()).AuthorId;
            var postDtos = await _postAppService.GetPostsByAuthorId(authorId);

            postDtos.Count().ShouldBeGreaterThan(0);

            this.Dispose();
        }