Exemplo n.º 1
0
 public static UnderwritingService GetService()
 {
     if (_service == null)
     {
         _service = new UnderwritingService();
     }
     return(_service);
 }
Exemplo n.º 2
0
        public static Context DebugRule(UnderwritingInput input)
        {
            var ctx = Context.InitContext(input);
            UnderwritingService service = GetService();

            service.CalculateValues(ctx).CalculateSums(ctx).CalculateInsurancePremium(ctx)
            .CalculateHOI(ctx).CalculateCashScenario(ctx)
            .CalculateLoanScenario(ctx).CalculateFlipScenario(ctx)
            .CalculateSummary(ctx).CalculateMinimumBaselineScenario(ctx)
            .CalculateBestCaseScenario(ctx).CalculateRentalModel(ctx);
            return(ctx);
        }