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(); }
public void mustSaveANullDate() { InformacaoExtra _infoExtra = new InformacaoExtra(_workspace); _infoExtra.CodigoInformacaoExtra = 1; _infoExtra.CodigoPontoNotavel = 1; _infoExtra.Informacoes = "Testes"; _infoExtra.DataCadastro = DateTime.Now.Date; _infoExtra.Save(); Assert.IsNotNull(_infoExtra.DataCadastro); _infoExtra.DataCadastro = null; _infoExtra.Update(); InformacaoExtra _infoExtraB = new InformacaoExtra(_workspace); _infoExtraB.Load(_infoExtra.CodigoInformacaoExtra); Assert.IsNull(_infoExtraB.DataCadastro); }