예제 #1
0
        public EmployeeRepository()
        {
            Employee both = new SoftwareArchitect
            {
                FirstName             = "Bo",
                LastName              = "Ramsdahl Thomassen",
                Level                 = SoftwareArchitectLevel.Senior,
                VisioDrawingsProduced = 87
            };
            Employee henrmo = new SoftwareEngineer
            {
                FirstName         = "Henrik",
                LastName          = "Leth Mortensen",
                Level             = SoftwareEngineerLevel.Senior,
                CodeLinesProduced = 251723
            };
            Employee jepk = new SoftwareEngineer
            {
                FirstName         = "Jeppe",
                LastName          = "Thestrup Knudsen",
                Level             = SoftwareEngineerLevel.Senior,
                CodeLinesProduced = 235919
            };
            Employee rm = new SoftwareArchitect
            {
                FirstName             = "Rasmus",
                LastName              = "Holm Mortensen",
                Level                 = SoftwareArchitectLevel.Senior,
                VisioDrawingsProduced = 42
            };
            Employee nilad = new BusinessAnalyst
            {
                FirstName = "Nina",
                LastName  = "Holewińska Ladefoged"
            };
            Employee ntho = new ProjectManager
            {
                FirstName = "Nils",
                LastName  = "Gram Thomassen",
                Level     = ProjectManagerLevel.Senior,
                Team      = "Banzai Raccoons"
            };
            Employee phe = new StudentProgrammer
            {
                FirstName  = "Peter",
                LastName   = "Nethan Henriksen",
                MentoredBy = jepk
            };
            Employee jeshe = new SoftwareEngineer
            {
                FirstName         = "Jesper",
                LastName          = "Gulmann Henriksen",
                Level             = SoftwareEngineerLevel.Lead,
                CodeLinesProduced = 176
            };

            _employees = new Employee[]
            {
                both, henrmo, jepk, rm, nilad, ntho, phe, jeshe
            };
        }
예제 #2
0
 public AnalyzeCommand(BusinessAnalyst businessAnalyst)
 {
     _businessAnalyst = businessAnalyst;
 }