コード例 #1
0
        public EmployeeRepository()
        {
            Employee bo = new SoftwareArchitect
            {
                FirstName             = "Bo",
                LastName              = "Rammstein",
                Level                 = SoftwareArchitectLevel.Senior,
                VisioDrawingsProduced = 87
            };
            Employee henrik = new SoftwareEngineer
            {
                FirstName         = "Henrik",
                LastName          = "Lethbane",
                Level             = SoftwareEngineerLevel.Senior,
                CodeLinesProduced = 251723
            };
            Employee jeppe = new SoftwareEngineer
            {
                FirstName         = "Jeppe",
                LastName          = "Finlandia",
                Level             = SoftwareEngineerLevel.Senior,
                CodeLinesProduced = 235919
            };
            Employee rasmus = new SoftwareArchitect
            {
                FirstName             = "Rasmus",
                LastName              = "Motorhead",
                Level                 = SoftwareArchitectLevel.Senior,
                VisioDrawingsProduced = 42
            };
            Employee nina = new BusinessAnalyst
            {
                FirstName = "Nina",
                LastName  = "Hololens"
            };
            Employee nils = new ProjectManager
            {
                FirstName = "Nils",
                LastName  = "Gram Kilo",
                Level     = ProjectManagerLevel.Senior,
                Team      = "Banzai Raccoons"
            };
            Employee peter = new StudentProgrammer
            {
                FirstName  = "Peter",
                LastName   = "Thailand",
                MentoredBy = jeppe
            };
            Employee jesper = new SoftwareEngineer
            {
                FirstName         = "Jesper",
                LastName          = "Gulmann Henriksen",
                Level             = SoftwareEngineerLevel.Lead,
                CodeLinesProduced = 176
            };

            _employees = new List <Employee>
            {
                bo, henrik, jeppe, rasmus, nina, nils, peter, jesper
            };
        }
コード例 #2
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 List <Employee>
            {
                both, henrmo, jepk, rm, nilad, ntho, phe, jeshe
            };
        }