public void Then_expected_methods_are_called_the_correct_times()
            {
                _sut.Delete(_foo);

                Assert.Multiple(() =>
                {
                    _contextService.Received(_expectedContextManageCount).InitContext();
                    _contextService.Received(_expectedContextManageCount).ClearCurrentContext();
                    _dbSet.Received(1).Remove(_foo);
                    _flushService.Received(1).FlushChanges(_context);
                });
            }
Esempio n. 2
0
 public void Delete(Context context)
 {
     _contextRepository.Delete(context);
 }