| | |
| | | NFM001Controller.debug_msg = ''; |
| | | update company; |
| | | departAssert = [Select Id, Name, Is_Active__c, DepartmentEffectiveDateTo__c from Account where Id = :depart.Id]; |
| | | System.assertEquals('草案中', departAssert.Is_Active__c); |
| | | System.assertEquals('無効', departAssert.Is_Active__c); |
| | | departAssert = [Select Id, Name, Is_Active__c, DepartmentEffectiveDateTo__c from Account where Id = :depart2.Id]; |
| | | System.assertEquals('有効', departAssert.Is_Active__c); |
| | | System.Test.stopTest(); |
| | |
| | | Contact contact2 = new Contact(); |
| | | User user = new User(); |
| | | Agency_Hospital_Link__c agency_hospital_link = new Agency_Hospital_Link__c(); |
| | | User thisUser = [select Id from User where Id = :UserInfo.getUserId() ]; |
| | | System.runAs ( thisUser ){ |
| | | // 取引先 |
| | | account1.Name = 'test1医院'; |
| | | account1.RecordTypeId = '01210000000QemG'; |
| | |
| | | System.assertEquals('test1医院', agencylistCheck[0].Name); |
| | | |
| | | } |
| | | } |
| | | // Resendtest |
| | | static testMethod void resend_test() { |
| | | // 病院 の recode type を取得 |