mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
739 B
30 lines
739 B
using System.Threading.Tasks;
|
|
using Shouldly;
|
|
using Xunit;
|
|
|
|
namespace Volo.CmsKit.Samples
|
|
{
|
|
public class SampleAppService_Tests : CmsKitApplicationTestBase
|
|
{
|
|
private readonly ISampleAppService _sampleAppService;
|
|
|
|
public SampleAppService_Tests()
|
|
{
|
|
_sampleAppService = GetRequiredService<ISampleAppService>();
|
|
}
|
|
|
|
[Fact]
|
|
public async Task GetAsync()
|
|
{
|
|
var result = await _sampleAppService.GetAsync();
|
|
result.Value.ShouldBe(42);
|
|
}
|
|
|
|
[Fact]
|
|
public async Task GetAuthorizedAsync()
|
|
{
|
|
var result = await _sampleAppService.GetAuthorizedAsync();
|
|
result.Value.ShouldBe(42);
|
|
}
|
|
}
|
|
}
|
|
|