public void LoadSomeModels() { for (int c = 0; c < 100; c++) { ProjetoStandard _projetoStd = new ProjetoStandard(); } }
public void mustDeleteAModel() { ProjetoStandard _projStandard = new ProjetoStandard(_workspace); mustSaveAModel(); _projStandard.Load(999); _projStandard.Delete(); }
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(); }
public void mustSaveAModel() { ProjetoStandard _projStandard = new ProjetoStandard(_workspace); _projStandard.Codigo = 999; _projStandard.CodigoProjetoStandard = "1"; _projStandard.CodigoTI = 10; _projStandard.CodigoTipoProjeto = 1; _projStandard.Empresa = "teste"; _projStandard.Nome = "teste"; _projStandard.Save(); }
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(); }
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(); }