pull/6996/head
Ahmet 5 years ago
parent ede633eb4b
commit 706585df59

@ -2,7 +2,6 @@
using System.Runtime.Serialization;
using JetBrains.Annotations;
using Volo.Abp;
using Volo.CmsKit.Tags;
namespace Volo.CmsKit.Pages
{

@ -121,7 +121,9 @@ namespace Volo.CmsKit.Pages
Content = "my-test-content"
};
await Should.ThrowAsync<PageUrlAlreadyExistException>(async () => await _pageAdminAppService.CreateAsync(dto));
var exception = await Should.ThrowAsync<PageUrlAlreadyExistException>(async () => await _pageAdminAppService.CreateAsync(dto));
exception.Code.ShouldBe(CmsKitErrorCodes.Pages.UrlAlreadyExist);
}
[Fact]

Loading…
Cancel
Save