Exemplo n.º 1
0
        public static List <Player> getPlayers(NhlContext context)
        {
            List <Player> players = new List <Player>()
            {
                new Player {
                    FirstName = "Sven",
                    LastName  = "BAERTSCHI",
                    TeamName  = context.Teams.Find("Canucks").TeamName,
                    Position  = "Forward"
                },
                new Player {
                    FirstName = "Henrik",
                    LastName  = "Sedin",
                    TeamName  = context.Teams.Find("Canucks").TeamName,
                    Position  = "Right Wing"
                },
                new Player {
                    FirstName = "Rooster",
                    LastName  = "Plumber",
                    TeamName  = context.Teams.Find("Flames").TeamName,
                    Position  = "Right Wing"
                },
                new Player {
                    FirstName = "Bob",
                    LastName  = "Plumber",
                    TeamName  = context.Teams.Find("Oilers").TeamName,
                    Position  = "Defence"
                }
            };

            return(players);
        }
Exemplo n.º 2
0
        public static List <Player> GetPlayers(NhlContext context)
        {
            List <Player> Players = new List <Player>()
            {
                new Player
                {
                    FirstName = "Mahesh Kumar",
                    LastName  = "Yadav",
                    Position  = "Coach",
                    TeamName  = context.Teams.Find("Canucks").TeamName,
                    Salary    = 89,
                },
                new Player
                {
                    FirstName = "Naresh Kumar",
                    LastName  = "Yadav",
                    Position  = "Forward",
                    TeamName  = context.Teams.Find("Oilers").TeamName,
                    Salary    = 6.9,
                },
                new Player
                {
                    FirstName = "Kumar Kumar",
                    LastName  = "Yadav",
                    Position  = "Left Wing",
                    TeamName  = context.Teams.Find("Flames").TeamName,
                    Salary    = 4.5,
                },
            };

            return(Players);
        }
        public static List <Player> GetPlayers(NhlContext context)
        {
            List <Player> players = new List <Player>()
            {
                new Player()
                {
                    FirstName = "SVEN",
                    LastName  = "BAERTSCHI",
                    TeamName  = context.Teams.Find("Canucks").TeamName,
                    Position  = "Forward"
                },
                new Player()
                {
                    FirstName = "HENRIK",
                    LastName  = "SEDIN",
                    TeamName  = context.Teams.Find("Canucks").TeamName,
                    Position  = "Left Wing"
                },
                new Player()
                {
                    FirstName = "JOHN",
                    LastName  = "ROOSTER",
                    TeamName  = context.Teams.Find("Flames").TeamName,
                    Position  = "Right Wing"
                },
                new Player()
                {
                    FirstName = "BOB",
                    LastName  = "PLUMBER",
                    TeamName  = context.Teams.Find("Oilers").TeamName,
                    Position  = "Defense"
                }
            };

            return(players);
        }