Example #1
0
        public void GetDigitalGame()
        {
            int targetId       = 6074;
            DigitalGameModel g = new DigitalGameModel(targetId);

            Console.WriteLine(g);
            Console.WriteLine(g.Platform);
            Console.WriteLine(g.Title);
            Console.WriteLine(g.Id);
            Console.WriteLine(g.ServiceName);
            Console.WriteLine(g.ServiceId);
        }
Example #2
0
        public static GameCollectionGame MakeCapcomGameCollection()
        {
            List <GameModel> testGameList = new List <GameModel>();

            GameCompanyModel microsoft = new GameCompanyModel {
                GameCompanyName = "Microsoft"
            };
            GameCompanyModel capcom = new GameCompanyModel {
                GameCompanyName = "Capcom"
            };

            PlatformModel x360 = new PlatformModel
            {
                Developer    = microsoft,
                Publisher    = microsoft,
                PlatformName = "Xbox 360"
            };

            GameModel g1 = new PhysicalGameModel
            {
                Id         = 1,
                Title      = "Resident Evil 6",
                Box        = false,
                Manual     = false,
                Platform   = x360,
                Publishers = new List <GameCompanyModel> {
                    capcom
                },
                Developers = new List <GameCompanyModel> {
                    capcom
                }
            };

            GameModel g2 = new PhysicalGameModel
            {
                Id         = 2,
                Title      = "Dead Rising 2",
                Box        = false,
                Manual     = false,
                Platform   = x360,
                Publishers = new List <GameCompanyModel> {
                    capcom
                },
                Developers = new List <GameCompanyModel> {
                    capcom
                }
            };
            GameModel g3 = new DigitalGameModel
            {
                Id         = 3,
                Title      = "Mega Man 10",
                Platform   = x360,
                Publishers = new List <GameCompanyModel> {
                    capcom
                },
                Developers = new List <GameCompanyModel> {
                    capcom
                },
                ServiceName = "Xbox Live",
                ServiceId   = 2
            };

            testGameList.Add(g1);
            testGameList.Add(g2);
            testGameList.Add(g3);

            GameCollectionGame gc = new GameCollectionGame
            {
                GamesInCollection = testGameList,
                Title             = "Capcom Classics Collection",
                Publishers        = new List <GameCompanyModel> {
                    capcom
                },
                Platform = x360
            };

            return(gc);
        }