public void TestCleanup()
        {
            // cleanup all the infrastructure that was needed for our tests.

            if (_dataContextAsync != null)
            {
                _dataContextAsync.Dispose();
            }

            if (_fakeConfigurationRepository != null)
            {
                _fakeConfigurationRepository.Dispose();
            }

            if (_fakeContextService != null)
            {
                _fakeContextService.Dispose();
            }
            // _fakewcfAppenderService.
            // _logManager

            if (_loggingService != null)
            {
                _loggingService.Dispose();
            }

            if (_uow != null)
            {
                _uow.Dispose();
            }

            _simpleMembershipService = null;
        }
コード例 #2
0
 public void Dispose()
 {
     _loggingService?.Dispose();
 }