Esempio n. 1
0
        public void GetCargosByTypeTest()
        {
            CargoDAO target = new CargoDAO();

            cargo = CreateCargo();
            target.InsertCargo(cargo);
            oldId = cargo.CargoId;
            string type = RandomString(6);

            cargo.Type = type;
            target.InsertCargo(cargo);
            List <Cargo> cargos = target.GetCargosByType(type);

            Assert.IsTrue(cargos.Count == 1);
        }