Exemple #1
0
        public async Task CreateComment_Test()
        {
            await _commentAppService.CreateOrUpdate(new CreateOrUpdateCommentInput
            {
                Comment = new CommentEditDto
                {
                    Text = "test",
                }
            });

            await UsingDbContextAsync(async context =>
            {
                var dystopiaComment = await context.Comments.FirstOrDefaultAsync();
                dystopiaComment.ShouldNotBeNull();
            }
                                      );
        }