public void CanLoadTeamView()
        {
            arrangeStructure();

            IPrepareView <List <TeamExtended> > prepareView = new PrepareTeamView <List <TeamExtended> >();
            List <TeamExtended> teams = prepareView.GetView(db);

            Assert.AreEqual(teams[0].Name, "Dyrekcja generalna");
            Assert.AreEqual(teams[1].Name, "Team 1");
            Assert.AreEqual(teams.Count, 4);
        }
        // GET: HRTeams
        public ActionResult Index()
        {
            IPrepareView <List <TeamExtended> > prepareView = new PrepareTeamView <List <TeamExtended> >();

            return(View(prepareView.GetView(_db)));
        }