Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var arr1 = EmployeeFactory.CreateEmployees(10);
            var arr2 = VideogameFactory.CreateRandomVideoGames(10);

            Show(arr1);
            Show(arr2);
        }
Exemplo n.º 2
0
        public void SetUp()
        {
            videogames = VideogameFactory.CreateFullVideoGameLibrary();

            v1 = new Videogame("Grand Theft Auto V", Platform.PS3, 2013, "Action", "Take-Two Interactive", 6.25, 8.02, 0.85, 3.93);
            v2 = new Videogame("FIFA Soccer 14", Platform.PS3, 2013, "Sports", "Electronic Arts", 0.70, 4.04, 0.07, 2.00);
            v3 = new Videogame("SpongeBob's Truth or Square", Platform.Xbox360, 2009, "Action", "THQ", 0.03, 0.04, 0.00, 0.00);
            v4 = new Videogame("Guilty Gear XX Accent Core", Platform.Wii, 2007, "Fighting", "505 Games", 0.03, 0.00, 0.00, 0.00);
            v5 = new Videogame("Thomas & Friends: Hero of the Rails", Platform.Wii, 2010, "Misc", "Unknown", 0.00, 0.01, 0.00, 0.00);

            aux = new Videogame[10];
        }
Exemplo n.º 3
0
        public void SetUp()
        {
            e1 = new Employee("John", "1A", ContractType.Full);
            e2 = new Employee("Lily", "2B", ContractType.Partial);
            e3 = new Employee("Barney", "3C", ContractType.Partial);
            e4 = new Employee("Josh", "4D", ContractType.Full);
            e5 = new Employee("Josefa", "5E", ContractType.Partial);
            e6 = new Employee("Amanda", "6F", ContractType.Full);
            e7 = new Employee("Katy", "7G", ContractType.Partial);

            var arr2 = VideogameFactory.CreateFullVideoGameLibrary();
            var arr1 = new List <Employee>();

            arr1.Add(e1);
            arr1.Add(e2);
            arr1.Add(e3);
            arr1.Add(e4);
            arr1.Add(e5);
            arr1.Add(e6);
            arr1.Add(e7);
        }