public bool IsRuntimeConnectionAndSetupGood() { if (_isConnectionSetupGood.HasValue && _isConnectionSetupGood.Value) { return(true); } _isConnectionSetupGood = _setupRepository.IsConnectionPossible(); if (!_isConnectionSetupGood.Value) { return(false); } _isConnectionSetupGood = _setupRepository.IsDatabaseSetup(); return(_isConnectionSetupGood.Value); }
public bool IsConnectionPossible() { return(_setupRepository.IsConnectionPossible()); }