If you are a SpecFlow user certainly check out the Helper classes inside the TechTalk.SpecFlow.Assist namespace.
The helpers offer a wide range of functionality. I use it most of the time to translate the parameter table to a typed object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Binding] | |
public class OrderingAnswersSteps | |
{ | |
[Given(@"there is a question '(.*)' with the answers")] | |
public void GivenThereIsAQuestionWithTheAnswers(Table table) | |
{ | |
var answers = table.CreateSet<Answer>(); | |
//Add your test code here | |
} | |
} |
More information can be found here: http://www.specflow.org/documentation/SpecFlow-Assist-Helpers/