using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Business.ResourceExamineManagement; using Business.ResourceExamineManagement.Dto; using Bussiness.ApplicationTest; using Microsoft.VisualStudio.TestTools.UnitTesting; using Shouldly; using Volo.Abp.Identity; using Xunit; namespace Bussiness.ApplicationTest.ResourceExamineManagement { public class ResourceExamineAppService_Tests : CoreApplicationTestBase { private readonly IResourceExamineAppService _resourceExamineAppService; public ResourceExamineAppService_Tests() { _resourceExamineAppService = GetRequiredService(); } [Fact] public async Task Should_ThrowExcetion() { var testInput = new ResourceCheckInputDto { factoryId = 10201, sorderId = new List { 111111 }, company_id = 102 }; await Xunit.Assert.ThrowsAsync(async () => await _resourceExamineAppService.ReceiveResult("111111",0, "1000")); } [Fact] [ExpectedException(typeof(NotImplementedException))] public async Task Should_ThrowExcetion_Second() { var testInput = new ResourceCheckInputDto { factoryId = 10201, sorderId = new List { 111111 }, company_id = 102 }; await _resourceExamineAppService.ReceiveResult("111111",0,"1000"); } } }