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.
		
		
		
		
		
			
		
			
				
					
					
						
							51 lines
						
					
					
						
							1.3 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							51 lines
						
					
					
						
							1.3 KiB
						
					
					
				
								using Shentun.Utilities;
							 | 
						|
								using System;
							 | 
						|
								using System.Collections.Generic;
							 | 
						|
								using System.Linq;
							 | 
						|
								using System.Text;
							 | 
						|
								using System.Threading.Tasks;
							 | 
						|
								using Xunit.Abstractions;
							 | 
						|
								
							 | 
						|
								namespace Shentun.Peis.PlugIns.Tests
							 | 
						|
								{
							 | 
						|
								    public class ImportPacsResultPlugInsTest
							 | 
						|
								    {
							 | 
						|
								        private readonly ITestOutputHelper _output;
							 | 
						|
								        public ImportPacsResultPlugInsTest(ITestOutputHelper testOutputHelper)
							 | 
						|
								        {
							 | 
						|
								            _output = testOutputHelper;
							 | 
						|
								
							 | 
						|
								        }
							 | 
						|
								        [Fact]
							 | 
						|
								        public async Task ImportResultAsync()
							 | 
						|
								        {
							 | 
						|
								            string configParm;
							 | 
						|
								            string filePath = DirectoryHelper.GetAppDirectory() + "/appsettings.json";
							 | 
						|
								            configParm = File.ReadAllText(filePath);
							 | 
						|
								
							 | 
						|
								            var input = new ImportPacsResultPlugInsBase(configParm);
							 | 
						|
								            var list = await input.GetRequestPatientRegisters(
							 | 
						|
								               30);
							 | 
						|
								            foreach(var item in list )
							 | 
						|
								            {
							 | 
						|
								                _output.WriteLine(item.PatientRegisterId.ToString());
							 | 
						|
								            }
							 | 
						|
								
							 | 
						|
								
							 | 
						|
								        }
							 | 
						|
								
							 | 
						|
								        [Fact]
							 | 
						|
								        public async Task DoWorkAsync()
							 | 
						|
								        {
							 | 
						|
								            string configParm;
							 | 
						|
								            string filePath = DirectoryHelper.GetAppDirectory() + "/appsettings.json";
							 | 
						|
								            configParm = File.ReadAllText(filePath);
							 | 
						|
								
							 | 
						|
								            var input = new ImportPacsResultPlugInsBase(configParm);
							 | 
						|
								             await input.DoWork();
							 | 
						|
								            
							 | 
						|
								
							 | 
						|
								
							 | 
						|
								        }
							 | 
						|
								    }
							 | 
						|
								}
							 |