Exemplo n.º 1
0
        public void CanRemoveExistingDraft()
        {
            var draft = _drafts[0];
            IDraftRepository repository = new DraftRepository();

            repository.Remove(draft);

            using (ISession session = _sessionFactory.OpenSession())
            {
                var fromDb = session.Get <Draft>(draft.Id);
                Assert.IsNull(fromDb);
            }
        }