Example #1
0
        public static List <SystemModule> Generate(string url, RequirementsInformation parameters)
        {
            QuoteGeneratorRule rule = dslFactory.Create <QuoteGeneratorRule>(url, parameters);

            rule.Evaluate();
            return(rule.Modules);
        }
    static void Main(string[] args)
    {
      string url = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "sample.boo");

      // user needs the vacation module of the application, and has 200 users total.

      var info = new RequirementsInformation(200, "vacations");

      Console.WriteLine("Requesting quote for module \"vacations\" with 200 users\r\n");

      List<SystemModule> modules = QuoteGenerator.Generate(url, info);     

      DisplayModuleRequirements(modules);

      Console.WriteLine("\r\nPress enter to exit...");

      Console.ReadLine();
    }
 protected QuoteGeneratorRule(RequirementsInformation information)
 {
     this.information = information;
 }
 public static List<SystemModule> Generate(string url, RequirementsInformation parameters)
 {
   QuoteGeneratorRule rule = dslFactory.Create<QuoteGeneratorRule>(url, parameters);
   rule.Evaluate();
   return rule.Modules;
 }