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


            Mission mission = MISSION1;

            mission.Agency = AgencyTesting.AGENCY1;

            Mission mission1 = MISSION2;

            mission1.Agency = AgencyTesting.AGENCY1;

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

            response = missionRepo.GetByAgency(1);
            Assert.AreEqual(2, response.Data.Count);
        }