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.
		
		
		
		
		
			
		
			
				
					
					
						
							69 lines
						
					
					
						
							2.3 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							69 lines
						
					
					
						
							2.3 KiB
						
					
					
				
								using Shentun.Peis.AppointPatientRegisters;
							 | 
						|
								using Shentun.Peis.PlugIns.WebAppoints;
							 | 
						|
								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 WebAppointWebPeisPlugInsTest
							 | 
						|
								    {
							 | 
						|
								        private readonly ITestOutputHelper _output;
							 | 
						|
								        public WebAppointWebPeisPlugInsTest(ITestOutputHelper testOutputHelper)
							 | 
						|
								        {
							 | 
						|
								            _output = testOutputHelper;
							 | 
						|
								
							 | 
						|
								        }
							 | 
						|
								
							 | 
						|
								        [Fact]
							 | 
						|
								        public async Task GetAppointPatientRegisterListByFilterAsync()
							 | 
						|
								        {
							 | 
						|
								           
							 | 
						|
								            var plugIns = new WebAppointWebPeisPlugIns(new Guid("43a9c3a5-8741-4c64-b869-bc304712d88e"));
							 | 
						|
								            var items = await plugIns.GetAppointPatientRegisterListByFilterAsync(new AppointPatientRegisterInputDto()
							 | 
						|
								            {
							 | 
						|
								                MobilePhone = "18911254911",
							 | 
						|
								                AppointStartDate = DateTime.Now.Date.AddDays(-10)
							 | 
						|
								            });
							 | 
						|
								            foreach (var item in items)
							 | 
						|
								            {
							 | 
						|
								                _output.WriteLine(item.AppointPatientRegisterId + item.PersonName);
							 | 
						|
								            }
							 | 
						|
								
							 | 
						|
								        }
							 | 
						|
								
							 | 
						|
								        [Fact]
							 | 
						|
								        public async Task GetAppointRegisterAsbitemListByIdAsync()
							 | 
						|
								        {
							 | 
						|
								
							 | 
						|
								            var plugIns = new WebAppointWebPeisPlugIns(new Guid("43a9c3a5-8741-4c64-b869-bc304712d88e"));
							 | 
						|
								            var items = await plugIns.GetAppointRegisterAsbitemListByIdAsync(new AppointPatientRegisterIdInputDto()
							 | 
						|
								            {
							 | 
						|
								                AppointPatientRegisterId = "3a12f181-d6d5-c539-1517-29f4714c7495"
							 | 
						|
								            });
							 | 
						|
								            foreach (var item in items)
							 | 
						|
								            {
							 | 
						|
								                _output.WriteLine(item.AppointRegisterAsbitemId + item.AsbitemName);
							 | 
						|
								            }
							 | 
						|
								
							 | 
						|
								        }
							 | 
						|
								
							 | 
						|
								        [Fact]
							 | 
						|
								        public async Task GetByPatientRegisterIdAsync()
							 | 
						|
								        {
							 | 
						|
								
							 | 
						|
								            var plugIns = new WebAppointWebPeisPlugIns(new Guid("43a9c3a5-8741-4c64-b869-bc304712d88e"));
							 | 
						|
								            var items = await plugIns.GetByPatientRegisterIdAsync(new AppointPatientRegisterIdInputDto()
							 | 
						|
								            {
							 | 
						|
								                ThirdInterFaceId = new Guid("43a9c3a5-8741-4c64-b869-bc304712d88e"),
							 | 
						|
								                PatientRegisterId = new Guid("3a1361f6-3ec4-a4bc-9641-b269f619561a")
							 | 
						|
								            });
							 | 
						|
								            _output.WriteLine(items.AppointPatientRegisterId.ToString());
							 | 
						|
								          
							 | 
						|
								
							 | 
						|
								        }
							 | 
						|
								    }
							 | 
						|
								}
							 |