Пример #1
0
        public void mustDeleteAModel()
        {
            ProjetoStandard _projStandard = new ProjetoStandard(_workspace);

            mustSaveAModel();

            _projStandard.Load(999);
            _projStandard.Delete();
        }
Пример #2
0
        public void mustUpdateAModel()
        {
            ProjetoStandard _projStandard = new ProjetoStandard(_workspace);

            mustSaveAModel();

            _projStandard.Load(999);

            _projStandard.CodigoProjetoStandard = "1";
            _projStandard.CodigoTI = 10;
            _projStandard.Update();

            _projStandard.Load(999);

            Assert.AreEqual(_projStandard.CodigoProjetoStandard, "1");
            Assert.AreEqual(_projStandard.CodigoTI, 10);
            _projStandard.Delete();
        }
Пример #3
0
        public void mustSearchSomeFeatures()
        {
            ProjetoStandard _projStandard = new ProjetoStandard(_workspace);

            mustSaveAModel();

            var _listaProjetos = _projStandard.Search("ProjetoStandard.Empresa = 'teste' and ProjetoStandard.CodigoTI = 10");

            Assert.IsTrue(_listaProjetos.Count > 0);
            _projStandard.Load(999);
            _projStandard.Delete();
        }
Пример #4
0
        public void mustLoadAModel()
        {
            ProjetoStandard _projStandard = new ProjetoStandard(_workspace);

            mustSaveAModel();
            _projStandard.Load(999);

            Assert.AreEqual(_projStandard.Codigo, 999);
            Assert.AreEqual(_projStandard.CodigoProjetoStandard, "1");
            Assert.AreEqual(_projStandard.CodigoTI, 10);
            Assert.AreEqual(_projStandard.CodigoTipoProjeto, 1);
            Assert.AreEqual(_projStandard.Empresa, "teste");
            Assert.AreEqual(_projStandard.Nome, "teste");

            _projStandard.Delete();
        }