public void WhenIClickAddAndEnterReferenceRangesOfALabTestAndSaveAndCanSeeErrorMessageUponEachRecordSaveForColumn(string errormessage, string columnname, Table labList) { IEnumerable <ReferenceRangesData> rowdata = labList.CreateSet <ReferenceRangesData>(); if (!BP_ReferenceRangesUtilities.SetInvalidDataForCreate((List <ReferenceRangesData>)rowdata, errormessage, columnname)) { ScenarioContext.Current["ActResult"] = "Failed"; } }