private MethodDeclarationSyntax GenerateSetUp(Type typeUnderTest, IEnumerable <Models.Parameter> parameters) { return((MethodDeclarationSyntax) new MethodBuilder("SetUp") .WithAttributes(new Attribute(SetUpAttribute)) .WithModifiers(Modifiers.Public) .WithBody(BodyGenerator.Create(_mockGenerator.GenerateSetUpStatements(typeUnderTest, parameters).ToArray())) .Build()); }