using System.Threading.Tasks; using Shouldly; using Xunit; namespace Win_in.Sfs.Scp.Management.Samples { public class SampleAppService_Tests : ManagementApplicationTestBase { private readonly ISampleAppService _sampleAppService; public SampleAppService_Tests() { _sampleAppService = GetRequiredService(); } [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); } } }