Esempio n. 1
0
 public TotalSalesQueryResult ProductResult(string productCode, SalesResult result)
 {
     perProductTotal[productCode] = result;
     Total = new SalesResult
             (
         perProductTotal.Values.Select(r => r.PoliciesCount).Sum(),
         perProductTotal.Values.Select(r => r.PremiumAmount).Sum()
             );
     return(this);
 }
Esempio n. 2
0
 public TotalSalesQueryResult()
 {
     Total = SalesResult.NoSale();
 }
 public AgentSalesQueryResult AgentResult(string agentLogin, SalesResult result)
 {
     perAgentTotal[agentLogin] = result;
     return(this);
 }