Пример #1
0
        public List <ald.Fish> GetFishes()
        {
            var helper = new FishHelper();

            return(helper.GettheFishes2());
        }
Пример #2
0
        public HelperTest()
        {
            Sutr = new RoleHelper(new AquaLearnIMDbContext());
            Sutt = new TrashHelper(new AquaLearnIMDbContext());
            Sutf = new FishHelper(new AquaLearnIMDbContext());
            Sutp = new PlantHelper(new AquaLearnIMDbContext());
            Suth = new HazardHelper(new AquaLearnIMDbContext());
            Sute = new ExhibitHelper(new AquaLearnIMDbContext());
            Sutu = new UserHelper(new AquaLearnIMDbContext());
            Sutq = new QuizHelper(new AquaLearnIMDbContext());
      
            role = new Role()
            {
                Name = "Teacher"
            };

            trash = new Trash()
            {
                Name = "Plastic Bottles",
                Schooling = true,
                Description = "Americans throw away 35 billion plastic water bottles every year.Making the ocean inhabitable for sea creatures."
            };

            fish = new Fish()
            {
                Name = "Shark",
                Schooling = false,
                Description = "Sharks are the most threatening predators in the ocean.",
                WaterType = new WaterType()
                {
                    WaterTypeId = 4,
                    Name = "Ocean Salt Water"
                }
            };
      
            plant = new Plant()
            {
                Name = "Algae",
                Description = "Algae are very diverse and found almost everywhere on the planet. They play an important role in many ecosystems, including providing the foundation for the aquatic food chains supporting all fisheries in the oceans and inland, as well as producing about 70 percent of all the air we breathe."
            };

            hazard = new Hazard()
            {
                Name = "Plastic",
                Description = "Pollution"
            };

            exhibit = new Exhibit()
            {
                Name = "Deep Sea",
            };

            user = new User()
            {
                Username = "******",
                Password = "******",
                ClassroomId = 22
            };

            quiz = new Quiz()
            {
               Name="Quiz"
            };

            Sutr.SetRole(role);
            Sutt.SetTrash(trash);
        }