@isTest
public with sharing class AccountToTMSInfoTriggerTest {
    static testMethod void testInitOne(){
            
            Address_Level__c address = new Address_Level__c(Level1_Code__c = 'CN-01',Name='北京市');
            insert address;
            // 病院を作る
            Oly_TriggerHandler.bypass('AccountTrigger');
            Account hospital = new Account();
            hospital.recordtypeId = [Select Id FROM RecordType WHERE IsActive = true and SobjectType = 'Account' and DeveloperName = 'AgencyContract'].id;
            hospital.Name = 'test hospital';
            hospital.Is_Active__c = '有效';
            hospital.State_Master__c = 'a09C80000000sC4IAI';
            hospital.Aim_Price__c = 41421421;
            hospital.Agent_Ref__c = '001C8000002Se2QIAS';
            hospital.ParentId = '001C8000002Se2QIAS';
            hospital.ET_SP_Dealer__c = true;
            insert hospital;
            Account hospital2 = new Account();
            hospital2.recordtypeId = [Select Id FROM RecordType WHERE IsActive = true and SobjectType = 'Account' and DeveloperName = 'AgencyContract'].id;
            hospital2.Name = 'test hospital';
            hospital2.Is_Active__c = '有效';
            hospital2.State_Master__c = 'a09C80000000sCAIAY';
            hospital2.Aim_Price__c = 414;
            hospital2.Agent_Ref__c = '001C8000002Se0tIAC';
            hospital2.ParentId = '001C8000002Se0tIAC';
            hospital2.ENG_Dealer__c = true;
            insert hospital2;
            // Dealer_ConsumableManage__c  dc = new Dealer_ConsumableManage__c();
            // dc.ET_ENG__c='ET';
            // dc.FY__c='FY2024';
            // dc.TMS_Key__c='001C8000002UAN2IGG-ET-FY2024-云南';
            // dc.ET_ENG__c='ET';

    }
}