public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + Verified.GetHashCode(); hash = hash * 23 + Active.GetHashCode(); hash = hash * 23 + Name.GetHashCode(); hash = hash * 23 + Email.GetHashCode(); hash = hash * 23 + Description.GetHashCode(); hash = hash * 23 + Type.GetHashCode(); hash = hash * 23 + TaxID.GetHashCode(); hash = hash * 23 + BankAccount.GetHashCode(); hash = hash * 23 + FailureCode.GetHashCode(); return(hash); } }
public override int GetHashCode() { unchecked { int hash = 17; if (Verified != default(bool)) { hash = hash * 23 + Verified.GetHashCode(); } if (Active != default(bool)) { hash = hash * 23 + Active.GetHashCode(); } if (Name != default(string)) { hash = hash * 23 + Name.GetHashCode(); } if (Email != default(string)) { hash = hash * 23 + Email.GetHashCode(); } if (Description != default(string)) { hash = hash * 23 + Description.GetHashCode(); } if (Type != default(RecipientType)) { hash = hash * 23 + Type.GetHashCode(); } if (TaxID != default(string)) { hash = hash * 23 + TaxID.GetHashCode(); } if (BankAccount != default(BankAccount)) { hash = hash * 23 + BankAccount.GetHashCode(); } if (FailureCode != default(string)) { hash = hash * 23 + FailureCode.GetHashCode(); } return(hash); } }
public void UpdateBasicInfo(string accountName, string npi, int taxID, string website) { GotoPracticeSettings(); Edit.Click(); WaitForElementVisible <BasicInfo>(30); ClearAll <BasicInfo>(this); AccountName.SendKeys(accountName); NPI.SendKeys(npi); TaxID.SendKeys(taxID.ToString()); Website.SendKeys(website); State.Select("Alabama"); Save.Click(); Assert.AreEqual("Account details updated successfully", Toastr.Text); }
public override string GetValue(string fieldName) { switch (fieldName) { case Fields.Identifier: return(Identifiers == null ? MzTab.NullFieldText : string.Join("|", Identifiers)); case Fields.ChemicalFormula: return(ChemicalFormula.ToString()); case Fields.Smiles: return(Smiles ?? MzTab.NullFieldText); case Fields.InChIKey: return(InChIKeys == null ? MzTab.NullFieldText : string.Join("|", InChIKeys)); case Fields.Description: return(Description ?? MzTab.NullFieldText); case Fields.ExperimentMZ: return(ExperimentalMZ.ToString()); case Fields.TheoreticalMZ: return(TheoreticalMZ.ToString()); case Fields.Charge: return(Charge.ToString()); case Fields.RetentionTime: return(RetentionTimes == null ? MzTab.NullFieldText : string.Join("|", RetentionTimes)); case Fields.TaxID: return(TaxID.ToString()); case Fields.Species: return(Species ?? MzTab.NullFieldText); case Fields.Database: return(Database ?? MzTab.NullFieldText); case Fields.DatabaseVersion: return(DatabaseVersion ?? MzTab.NullFieldText); case Fields.Reliability: return((Reliability == MzTab.MetabolomicsReliabilityScore.NotSet) ? MzTab.NullFieldText : ((int)Reliability).ToString()); case Fields.Uri: return(Uri == null ? MzTab.NullFieldText : Uri.ToString()); case Fields.SpectralReference: return(SpectralReference ?? MzTab.NullFieldText); case Fields.SearchEngine: return(SearchEngines == null ? MzTab.NullFieldText : string.Join("|", SearchEngines)); case Fields.Modifications: return(Modifications ?? MzTab.NullFieldText); } if (fieldName.Contains("[")) { string condensedFieldName; List <int> indices = MzTab.GetFieldIndicies(fieldName, out condensedFieldName); switch (condensedFieldName) { case Fields.BestSearchEngineScores: return(GetListValue(_bestSearchEngineScores, indices[0])); case Fields.SearchEngineScorePerMsRun: return(GetListValue(_searchEngineScorePerMsRun, indices[0], indices[1])); case Fields.AbundanceAssay: return(GetListValue(_abundanceAssays, indices[0])); case Fields.AbundanceStudyVariable: return(GetListValue(_abundanceStudyVariables, indices[0])); case Fields.AbundanceStDevStudyVariable: return(GetListValue(_abundanceStdevStudyVariables, indices[0])); case Fields.AbudnanceStdErrorStudyVariable: return(GetListValue(_abundanceStandardErrorStudyVariables, indices[0])); } } if (fieldName.StartsWith(MzTab.OptionalColumnPrefix)) { return(GetOptionalData(fieldName)); } throw new ArgumentException("Unexpected field name: " + fieldName); }
public override string GetValue(string fieldName) { switch (fieldName) { case Fields.Accession: return(Accession); case Fields.Description: return(Description); case Fields.Database: return(Database); case Fields.DatabaseVersion: return(DatabaseVersion); case Fields.SearchEngine: return(SearchEngines == null ? MzTab.NullFieldText : string.Join("|", SearchEngines)); case Fields.TaxID: return(TaxID.ToString()); case Fields.Species: return(Species); case Fields.Modifications: return(Modificiations); case Fields.AmbiguityMembers: return(AmbiguityMembers == null ? MzTab.NullFieldText : string.Join(",", AmbiguityMembers)); case Fields.Reliability: if (Reliability == MzTab.ReliabilityScore.NotSet) { return(MzTab.NullFieldText); } return(((int)Reliability).ToString()); case Fields.Coverage: return(Coverage.ToString()); case Fields.Uri: return(Uri != null?Uri.ToString() : MzTab.NullFieldText); case Fields.GoTerms: return(GoTerms == null ? MzTab.NullFieldText : string.Join("|", GoTerms)); } if (fieldName.Contains("[")) { string condensedFieldName; List <int> indices = MzTab.GetFieldIndicies(fieldName, out condensedFieldName); switch (condensedFieldName) { case Fields.SearchEngine: return(GetListValue(_searchEngines, indices[0])); case Fields.BestSearchEngineScore: return(GetListValue(_bestSearchEngineScores, indices[0])); case Fields.AbundancePerAssay: return(GetListValue(_abundanceAssays, indices[0])); case Fields.AbundanceStudyVariables: return(GetListValue(_abundanceStudyVariables, indices[0])); case Fields.AbundanceStdevStudyVariables: return(GetListValue(_abundanceStdevStudyVariables, indices[0])); case Fields.AbundanceStandardErrorStudyVariables: return(GetListValue(_abundanceStandardErrorStudyVariables, indices[0])); case Fields.SearchEngineScoreMsRun: return(GetListValue(_searchEngineScoreMsRun, indices[0], indices[1])); case Fields.NumberOfPsmsPerMsRun: return(GetListValue(_numberOfPsmsPerMsRun, indices[0])); case Fields.NumberOfDistinctPeptidesPerMsRun: return(GetListValue(_numberOfDistinctPeptidesPerMsRun, indices[0])); case Fields.NumberOfUniquePeptidesPerMsRun: return(GetListValue(_numberOfUniquePeptidesPerMsRun, indices[0])); } } if (fieldName.StartsWith(MzTab.OptionalColumnPrefix)) { return(GetOptionalData(fieldName)); } throw new ArgumentException("Unexpected field name: " + fieldName); }