// Equivalent of "hello, world" public Packet AssessTest() { // Assert facts and combine them into a list TemporalValue v1 = new TemporalValue("Single"); Factoid fact1 = new Factoid("Tstr", "USC.Tit26.Sec2.FedTaxFilingStatus", "Jim", "", "", new List <TemporalValue>() { v1 }); List <Factoid> facts = new List <Factoid>() { fact1 }; // Define goals to be sought, and combine them into a list Factoid goal1 = new Factoid("Tnum", "IRS.Pub501.StandardDeduction", "Jim", "", ""); // Factoid goal1 = new Factoid("Tnum","USC.Tit26.Sec151.ThresholdAmount","Jim","",""); // Factoid goal2 = new Factoid("Tnum","USC.Tit26.Sec151.ApplicablePercentage","Jim","",""); // Factoid goal3 = new Factoid("Tbool","USC.Tit26.Sec152.IsDependentOf","Kid","Dad",""); // For some reason, this is very slow... List <Factoid> goals = new List <Factoid>() { goal1 }; // Assemble a mock request to the web service Packet mockPacket = new Packet(goals, facts); // Assess the request return(Assess(mockPacket)); }
// Equivalent of "hello, world" public Packet AssessTest() { // Assert facts and combine them into a list TemporalValue v1 = new TemporalValue("Single"); Factoid fact1 = new Factoid("Tstr","USC.Tit26.Sec2.FedTaxFilingStatus","Jim","","",new List<TemporalValue>(){v1}); List<Factoid> facts = new List<Factoid>(){fact1}; // Define goals to be sought, and combine them into a list Factoid goal1 = new Factoid("Tnum", "IRS.Pub501.StandardDeduction", "Jim", "", ""); // Factoid goal1 = new Factoid("Tnum","USC.Tit26.Sec151.ThresholdAmount","Jim","",""); // Factoid goal2 = new Factoid("Tnum","USC.Tit26.Sec151.ApplicablePercentage","Jim","",""); // Factoid goal3 = new Factoid("Tbool","USC.Tit26.Sec152.IsDependentOf","Kid","Dad",""); // For some reason, this is very slow... List<Factoid> goals = new List<Factoid>(){goal1}; // Assemble a mock request to the web service Packet mockPacket = new Packet(goals, facts); // Assess the request return Assess(mockPacket); }