@isTest
public class NewAndEditRepairControllerTest {
    @TestSetup
    static void makeData(){
        TestDataUtility.CreatePIPolicyConfiguration();
        
    }
    static testMethod void NewAndEditRepairController() {
        Contact con = TestDataUtility.CreateContacts(1)[0];
        con.AWS_Data_Id__c = '1234567890';
        update con;
        Test.setMock(HttpCalloutMock.class, new TestDataUtility.CreateMetaDataUtilityHttpMock());
        Repair__c rep = TestDataUtility.CreateRepairs(1)[0];
        rep.ContactD__c = con.Id;
        update rep;
        Test.startTest();
        ApexPages.StandardController sc =  new ApexPages.StandardController(rep);
        NewAndEditRepairController qis = new NewAndEditRepairController(sc);
        
        String qisJson = '{"Name":"test123","AWS_Data_Id__c":"962013895902363649"}';
        NewAndEditRepairController.saveRepair(qisJson,'avgwshDFcxAS',False);
        NewAndEditRepairController.saveRepair(qisJson,'avgwshDFcxAS',True);
        Test.stopTest();
    }
}