Exemplo n.º 1
0
        }                                                  //list of skill operations

        internal void ClearOperations()
        {
            //Operations
            EmailOperations = new EmailOperations();
            var chemOperations          = new ChemOperations();
            var unitConverterOperations = new UnitConverterOperations();

            Operations = new List <IOperation>
            {
                EmailOperations,
                chemOperations,
                unitConverterOperations
            };
        }
Exemplo n.º 2
0
        internal SkillBuilder()
        {
            //Operations
            var chemOperations = new ChemOperations();

            EmailOperations = new EmailOperations(chemOperations);
            var unitConverterOperations = new UnitConverterOperations();

            //Lab Skills
            var getCompound = new SkillTemplate
            {
                Id           = "compoundSkill",
                OperationIds = new List <string> {
                    "Get_Compound"
                },
                SkillIds = new List <string>()
            };
            var getMolarity = new SkillTemplate
            {
                Id           = "molaritySkill",
                OperationIds = new List <string> {
                    "Get_Molarity"
                },
                SkillIds = new List <string>()
            };
            var getVolume = new SkillTemplate
            {
                Id           = "volumeSkill",
                OperationIds = new List <string> {
                    "Get_Volume"
                },
                SkillIds = new List <string>()
            };
            var getWeight = new SkillTemplate
            {
                Id           = "weightSkill",
                OperationIds = new List <string> {
                    "Get_Weight"
                },
                SkillIds = new List <string>()
            };
            var getMobilePhase = new SkillTemplate
            {
                Id           = "mobilePhaseSkill",
                OperationIds = new List <string> {
                    "Get_MobilePhase"
                },
                SkillIds = new List <string>()
            };
            var convertUnits = new SkillTemplate
            {
                Id           = "conversionSkill",
                OperationIds = new List <string> {
                    "Convert_Units"
                },
                SkillIds = new List <string>()
            };
            var sendEmail = new SkillTemplate
            {
                Id           = "emailSkill",
                OperationIds = new List <string> {
                    "Send_Email"
                },
                SkillIds = new List <string>()
            };

            //add to interfaces
            Operations = new List <IOperation>
            {
                EmailOperations,
                chemOperations,
                unitConverterOperations
            };
            Skills = new List <SkillTemplate>
            {
                getCompound,
                getMolarity,
                getVolume,
                getWeight,
                getMobilePhase,
                convertUnits,
                sendEmail
            };
            FillSkillLists();
        }