public NightWatchmanAnalysisModel( NightWatchmanInputParameterViewModel nightWatchmanInputModel, CommonInputParameterViewModel common) { this.nightWatchmanInputModel = nightWatchmanInputModel; this.analysis = new NightWatchmanAnalysis { ConnectionString = Repository.BuildConnectionString( EnvironmentSettings.GetInstance().DatabaseConnectionString, common.FileName.Replace(".zip", string.Empty)) }; }