private void ValidateReplayInput(XContainer xmlDocument, string currentDbVersion) { if (!ValidateDbVersion(xmlDocument, currentDbVersion)) { throw new InvalidOperationException("DB versions doesn't match"); } if (_appInfoRepository.RecordActions()) { throw new InvalidOperationException("Replaying actions cannot be proceeded on the database which has recording option on"); } }