<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Mar 19, 2014 at 11:53 AM, Mike Gatny <span dir="ltr"><<a href="mailto:mgatny@connamara.com" target="_blank">mgatny@connamara.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Indeed you can. Take a look at this unit test, which does exactly that:<div>
<a href="https://github.com/connamara/quickfixn/blob/master/UnitTests/SessionSettingsTest.cs" target="_blank">https://github.com/connamara/quickfixn/blob/master/UnitTests/SessionSettingsTest.cs</a></div></div></blockquote>
<div><br></div><div>Here's a snippet from that test:</div><div><br></div><div><br></div><div><pre style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:18px">
<div class="" id="LC49" style="padding-left:10px"><span class="" style="color:teal"> [Test]</span></div><div class="" id="LC50" style="padding-left:10px"> <span class="" style="font-weight:bold">public</span> <span class="" style="font-weight:bold">void</span> <span class="" style="color:rgb(153,0,0);font-weight:bold">Load</span><span class="" style>()</span></div>
<div class="" id="LC51" style="padding-left:10px"> <span class="" style>{</span></div><div class="" id="LC52" style="padding-left:10px"> <span class="" style="color:rgb(68,85,136);font-weight:bold">string</span> <span class="" style>configuration</span> <span class="" style>=</span> <span class="" style="font-weight:bold">new</span> <span class="" style>System</span><span class="" style>.</span><span class="" style>Text</span><span class="" style>.</span><span class="" style>StringBuilder</span><span class="" style>()</span></div>
<div class="" id="LC53" style="padding-left:10px"> <span class="" style>.</span><span class="" style>AppendLine</span><span class="" style>(</span><span class="" style="color:rgb(221,17,68)">"[DEFAULT]"</span><span class="" style>)</span></div>
<div class="" id="LC54" style="padding-left:10px"> <span class="" style>.</span><span class="" style>AppendLine</span><span class="" style>(</span><span class="" style="color:rgb(221,17,68)">"ConnectionType=initiator"</span><span class="" style>)</span></div>
<div class="" id="LC55" style="padding-left:10px"> <span class="" style>.</span><span class="" style>AppendLine</span><span class="" style>(</span><span class="" style="color:rgb(221,17,68)">"BeginString=FIX.4.0"</span><span class="" style>)</span></div>
<div class="" id="LC56" style="padding-left:10px"> <span class="" style>.</span><span class="" style>AppendLine</span><span class="" style>(</span><span class="" style="color:rgb(221,17,68)">"Value=4"</span><span class="" style>)</span></div>
<div class="" id="LC57" style="padding-left:10px"> <span class="" style>.</span><span class="" style>AppendLine</span><span class="" style>(</span><span class="" style="color:rgb(221,17,68)">"Empty="</span><span class="" style>)</span></div>
<div class="" id="LC58" style="padding-left:10px"> <span class="" style>.</span><span class="" style>AppendLine</span><span class="" style>(</span><span class="" style>partialConfiguration</span><span class="" style>.</span><span class="" style>ToString</span><span class="" style>())</span></div>
<div class="" id="LC59" style="padding-left:10px"> <span class="" style>.</span><span class="" style>ToString</span><span class="" style>();</span></div><div class="" id="LC60" style="padding-left:10px"> <span class="" style>SessionSettings</span> <span class="" style>settings</span> <span class="" style>=</span> <span class="" style="font-weight:bold">new</span> <span class="" style>SessionSettings</span><span class="" style>(</span><span class="" style="font-weight:bold">new</span> <span class="" style>System</span><span class="" style>.</span><span class="" style>IO</span><span class="" style>.</span><span class="" style>StringReader</span><span class="" style>(</span><span class="" style>configuration</span><span class="" style>));</span></div>
</pre></div><div> </div><div><br></div><div><div><div dir="ltr"><div><font face="arial, helvetica, sans-serif">--</font></div><font face="arial, helvetica, sans-serif">Mike Gatny<br>Connamara Systems, LLC</font></div></div>
</div><div><font face="arial, helvetica, sans-serif"><br></font></div></div></div></div>