Ejemplo n.º 1
0
        public void ShouldReturnListofMissions()
        {
            Response <List <Mission> > response = new Response <List <Mission> >();


            Mission mission = MissionTesting.MISSION1;

            mission.Agent = new List <Agent>();
            mission.Agent.Add(AGENT1);

            Mission mission1 = MissionTesting.MISSION2;

            mission1.Agent = new List <Agent>();
            mission1.Agent.Add(AGENT1);

            missionRepo.Insert(mission);
            missionRepo.Insert(mission1);

            response = repo.GetMissions(1);
            Assert.AreEqual(2, response.Data.Count);
        }