From 3a58a459e2604f06ca8ca7a851f472df6a7a30d9 Mon Sep 17 00:00:00 2001 From: enisn Date: Tue, 5 Jan 2021 10:00:17 +0300 Subject: [PATCH] CmsKit - Update Content Tests --- .../Contents/ContentAdminAppService_Tests.cs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/modules/cms-kit/test/Volo.CmsKit.Application.Tests/Contents/ContentAdminAppService_Tests.cs b/modules/cms-kit/test/Volo.CmsKit.Application.Tests/Contents/ContentAdminAppService_Tests.cs index a33f61cedc..887d50d555 100644 --- a/modules/cms-kit/test/Volo.CmsKit.Application.Tests/Contents/ContentAdminAppService_Tests.cs +++ b/modules/cms-kit/test/Volo.CmsKit.Application.Tests/Contents/ContentAdminAppService_Tests.cs @@ -51,14 +51,23 @@ namespace Volo.CmsKit.Contents [Fact] public async Task ShouldCreateAsync() { + var entityId = "1-2-3"; + var entityType = "My.Awesome.Blog"; + var value = "Some long content"; + var created = await _service.CreateAsync(new ContentCreateDto { - EntityId = "test_case_id", - EntityType = "test_case_type", - Value = "Some long content" + EntityId = entityId, + EntityType = entityType, + Value = value }); - created.ShouldNotBeNull(); + created.Id.ShouldNotBe(Guid.Empty); + + var content = await _service.GetAsync(created.Id); + + content.ShouldNotBeNull(); + content.EntityType.ShouldBe(entityType); } [Fact]