Add tests for PagePublicAppService.DoesSlugExistAsync

pull/17642/head
Enis Necipoglu 2 years ago
parent 734ccfb0fc
commit 2ead53d9f7
No known key found for this signature in database
GPG Key ID: 1EC55E13241E1680

@ -33,4 +33,20 @@ public class PagePublicAppService_Tests : CmsKitApplicationTestBase
page.ShouldBeNull();
}
[Fact]
public async Task DoesSlugExistAsync_ShouldReturnTrue_WhenExist()
{
var result = await _pageAppService.DoesSlugExistAsync(_data.Page_1_Slug);
result.ShouldBeTrue();
}
[Fact]
public async Task DoesSlugExistAsync_ShouldReturnFalse_WhenExist()
{
var result = await _pageAppService.DoesSlugExistAsync("not-exist-url");
result.ShouldBeFalse();
}
}

Loading…
Cancel
Save