public async Task WhenIGetTheFileForEstateTheFollowingFileLinesAreReturned(string fileName, string estateName, Table table) { EstateDetails estateDetails = this.TestingContext.GetEstateDetails(estateName); Guid fileId = estateDetails.GetFileId(fileName); var fileDetails = await this.GetFile(estateName, fileId, CancellationToken.None); foreach (TableRow tableRow in table.Rows) { var lineNumber = SpecflowTableHelper.GetIntValue(tableRow, "LineNumber"); var lineData = SpecflowTableHelper.GetStringRowValue(tableRow, "Data"); var processingResult = SpecflowTableHelper.GetEnumValue <FileLineProcessingResult>(tableRow, "Result"); var lineToVerify = fileDetails.FileLines.SingleOrDefault(fl => fl.LineNumber == lineNumber); lineToVerify.ShouldNotBeNull(); lineToVerify.LineData.ShouldBe(lineData); lineToVerify.ProcessingResult.ShouldBe(processingResult); } }