public void mustLoadAModel() { mustSaveAModel(); InformacaoExtra _infoExtra = new InformacaoExtra(_workspace); _infoExtra.Load(1); Assert.AreEqual(_infoExtra.CodigoInformacaoExtra, 1); Assert.AreEqual(_infoExtra.CodigoPontoNotavel, 1); Assert.AreEqual(_infoExtra.Informacoes, "Testes"); _infoExtra.Delete(); }
public void mustDeleteAModel() { mustSaveAModel(); InformacaoExtra _infoExtra = new InformacaoExtra(_workspace); _infoExtra.Load(1); _infoExtra.Delete(); InformacaoExtra _infoExtraResultado = new InformacaoExtra(_workspace); _infoExtraResultado.Load(1); Assert.IsNull(_infoExtraResultado.Informacoes); }
public void mustSearchSomeFeatures() { mustSaveAModel(); InformacaoExtra _infoExtra = new InformacaoExtra(_workspace); var _infosExtra = _infoExtra.Search("InformacaoExtra.CodigoPontoNotavel = 1"); foreach (InformacaoExtra _item in _infosExtra) { Assert.AreEqual(_item.Informacoes, "Testes"); } Assert.IsTrue(_infosExtra.Count > 0); _infoExtra.Load(1); _infoExtra.Delete(); }
public void mustUpdateAModel() { mustSaveAModel(); InformacaoExtra _infoExtra = new InformacaoExtra(_workspace); _infoExtra.Load(1); _infoExtra.Informacoes = "Sem Testes"; _infoExtra.Update(); InformacaoExtra _infoExtraResultado = new InformacaoExtra(_workspace); _infoExtraResultado.Load(1); Assert.AreEqual(_infoExtraResultado.Informacoes, "Sem Testes"); _infoExtra.Delete(); }