コード例 #1
0
        public async Task CreateTag_Test()
        {
            await _tagAppService.CreateOrUpdate(new CreateOrUpdateTagInput
            {
                Tag = new TagEditDto
                {
                    Name        = "test",
                    Description = "test",
                }
            });

            await UsingDbContextAsync(async context =>
            {
                var dystopiaTag = await context.Tags.FirstOrDefaultAsync();
                dystopiaTag.ShouldNotBeNull();
            }
                                      );
        }