public void TestShouldUpdate() { HistoricoVendas hv = new HistoricoVendas(1, 10, 20); using (HistoricoVendasSession s = new HistoricoVendasSession()) { using (var das = s.CreateDataAccessScope(true)) { IMapperHistoricoVendas map = s.CreateMapperHistoricoVendas(); map.Create(hv); hv.Hist3Anos = 40; map.Update(hv); HistoricoVendas actual = map.Read(hv.FranqId, hv.ProdId); Assert.AreEqual(hv.Hist3Anos, actual.Hist3Anos); } } }