public void Can_remove_existing_Setor() { var product = _Setors[0]; ISetorRepository repository = new SetorRepository(); repository.Remove(product); using (ISession session = _sessionFactory.OpenSession()) { var fromDb = session.Get <SetorModel>(product.Id); Assert.IsNull(fromDb); } }
public void Remove(Setor obj) { _dal.Remove(obj); }