Ejemplo n.º 1
0
        public async void HardDeleteModel()
        {
            _service = GetService(false);
            await _service.DeleteAsync("nieuw model");

            var history = await _service.GetHistoryAsync("nieuw model");

            Assert.True(history.Count() > 1);
            await Assert.ThrowsAsync <EntityNotFoundException>(() => _service.GetAsync("Nieuw model"));
        }
Ejemplo n.º 2
0
        public async void SoftDeleteModel()
        {
            await _service.DeleteAsync("nieuw model");

            var model = await _service.GetAsync("nieuw model");

            var history = await _service.GetHistoryAsync("nieuw model");

            Assert.True(history.Count() > 1);
            Assert.Equal(EntityStatus.Deleted, model.EntityStatus);
        }