@isTest
public class TydelikeAccControllerTest {
    static testMethod void testMethod1() {
        TydelikeAccount__c tyactest = new TydelikeAccount__c();
        tyactest.Name = 'test';
        tyactest.AssetBS3D__c = 'test';
        tyactest.AssetBS2D__c = 'test';
        tyactest.AssetBS1D__c = 'test';
        tyactest.AssetBS5D__c = 'test';
        tyactest.ManagementCode_Ext__c = 'test';
        tyactest.Sub_UseD__c = 'LED';
        tyactest.EnglishNameD__c = 'test';
        tyactest.DepartmentNameD__c = 'test';
        tyactest.FacilityNameD__c = 'test';
        tyactest.MarketVerticalsD__c = 'Education';
        tyactest.CancelReasonD__c = 'test';
        tyactest.ExportRegulatedCustomer__c = false;
        tyactest.Province__c = '北京';
        tyactest.Whether_OEM__c = false;
        tyactest.GlobalAccountName__c = 'test';
        tyactest.DivisionName_D__c = 'test';
        tyactest.UseD__c = 'IVF';
        //tyactest.WebsiteD__c = '';
        tyactest.TyCity__c = 'PII';
        tyactest.TyAddress__c = 'PII';
        tyactest.TyPostCode__c = 'PII';
        tyactest.ProductSegment__c = 'BS';
        tyactest.FaxD__c = 'test';
        tyactest.Remark__c = 'PII';
        //tyactest.DealerSelectOwner__c = 'OT-IT';
        tyactest.PhoneD__c = '13455556666';
        tyactest.NationalEnterpriseUser__c = false;
        tyactest.AssetBS4D__c = 'test';
        insert tyactest;
        
        TydelikeContact__c tycotest = new TydelikeContact__c();
        tycotest.Name = 'test';
        tycotest.TyAddress__c = 'test';
        tycotest.TyFaxD__c = 'test';
        tycotest.TyPhoneD__c = '13566667777';
        tycotest.TyPostcode__c = '5000000';
        tycotest.EnglishAddress__c = 'test';
        tycotest.ContactEnglishName__c = 'test';
        insert tycotest;
        
        String url = ApexPages.currentPage().getParameters().put('tyacId',tyactest.Id);
        url = ApexPages.currentPage().getParameters().put('tycoId',tycotest.Id);
        
        Test.startTest();
        TydelikeAccController scc = new TydelikeAccController();
        scc.init();
        scc.save();
        Test.stopTest();
    }

}