Пример #1
0
        public void SetUp()
        {
            var contextFactory = new SdlContextFactory();

            _unitOfWork = new UnitOfWork(contextFactory);

            _configurationRepository = new ConfigurationRepository(_unitOfWork);

            var config = _configurationRepository.GetByKey(ConfigKey).SingleOrDefault();

            if (config == null)
            {
                return;
            }

            _configurationRepository.Delete(config);

            _unitOfWork.Commit();
        }