Exemplo n.º 1
0
 public void CalculationViewLinqQueryCaching(string context)
 {
     using (var ctx = new CalcViewInputParameters(context))
     {
         var query1 = ctx.CaParamTest(10, 10.01, "mandatory1", null, null, "optional1");
         var query2 = ctx.CaParamTest(100, 100.001, "mandatory2", null, 10.1, "optional2");
         Assert.That(query1.SqlText, Is.Not.EqualTo(query2.SqlText));
     }
 }
Exemplo n.º 2
0
 public void CalculationViewLinqQuery(string context)
 {
     using (var ctx = new CalcViewInputParameters(context))
     {
         var query = ctx.CaParamTest(10, 10.01, "mandatory", null, null, "optional")
                     .Where(x => x.intmandatory > 0);
         var result = query.ToList();
         Assert.That(result.Count, Is.GreaterThan(0));
     }
 }
Exemplo n.º 3
0
 public void CalculationViewLinqQueryCaching(string context)
 {
     using (var ctx = new CalcViewInputParameters(context))
     {
         var query1 = ctx.CaParamTest(10, 10.01, "mandatory1", null, null, "optional1");
         var query2 = ctx.CaParamTest(100, 100.001, "mandatory2", null, 10.1, "optional2");
         Assert.That(query1.SqlText, Is.Not.EqualTo(query2.SqlText));
     }
 }
Exemplo n.º 4
0
 public void CalculationViewLinqQuery(string context)
 {
     using (var ctx = new CalcViewInputParameters(context))
     {
         var query = ctx.CaParamTest(10,10.01, "mandatory", null, null, "optional")
             .Where(x=>x.intmandatory > 0);
         var result = query.ToList();
         Assert.That(result.Count, Is.GreaterThan(0));
     }
 }