Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
 public void Remove(Setor obj)
 {
     _dal.Remove(obj);
 }