document.write("<div class=\"pastie\">\n");
document.write("  <link href=\"http://pastie.org/stylesheets/embed.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n");
document.write("  <link href=\"http://pastie.org/stylesheets/clean.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n");
document.write("  \n");
document.write("\n");
document.write("  \n");
document.write("  \n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("	\n");
document.write("	<div class=\"allcode\">\n");
document.write("		<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n");
document.write("		<tr>\n");
document.write("			<td>\n");
document.write("				\n");
document.write("				<pre class=\"textmate-source-numbers\">1\n");
document.write("2\n");
document.write("3\n");
document.write("4\n");
document.write("5\n");
document.write("6\n");
document.write("7\n");
document.write("8\n");
document.write("9\n");
document.write("10\n");
document.write("11\n");
document.write("12\n");
document.write("<\/pre>\n");
document.write("			<\/td>\n");
document.write("		<td>\n");
document.write("		<pre class=\"textmate-source\"><pre class=\"sunburst\">        [Test]\n");
document.write("<span class=\'meta meta_definition meta_definition_method meta_definition_method_csharp\'>        <span class=\'storage storage_modifier storage_modifier_csharp\'>public <\/span><span class=\'storage storage_type storage_type_csharp\'>void<\/span> <span class=\'entity entity_name entity_name_function entity_name_function_csharp\'>CanInsertSubPortal<\/span><span class=\'meta meta_definition meta_definition_param-list meta_definition_param-list_csharp\'>(<\/span>)<\/span>\n");
document.write("        {\n");
document.write("            var sp = <span class=\'keyword keyword_operator keyword_operator_csharp\'>new<\/span> SubPortal(<span class=\'string string_quoted string_quoted_double string_quoted_double_csharp\'>&quot;other&quot;<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_csharp\'>&quot;media portal&quot;<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_csharp\'>&quot;localhost&quot;<\/span>, <span class=\'storage storage_type storage_type_csharp\'>string<\/span>.Empty);\n");
document.write("\n");
document.write("            _repository.SaveOrUpdate(sp);\n");
document.write("            var otherSp = _repository.Get(sp.Id);\n");
document.write("            Assert.That(sp, Is.EqualTo(otherSp));\n");
document.write("\n");
document.write("            var sp2 = _repository.GetByName(<span class=\'string string_quoted string_quoted_double string_quoted_double_csharp\'>&quot;media&quot;<\/span>);\n");
document.write("            Console.WriteLine(sp2.Name);\n");
document.write("        }\n");
document.write("<\/pre><\/pre>\n");
document.write("		<\/td>\n");
document.write("		<\/tr>\n");
document.write("		<\/table>\n");
document.write("	\n");
document.write("	<\/div>\n");
document.write("\n");
document.write("\n");
document.write("  \n");
document.write("  \n");
document.write("  <div class=\"credit\">\n");
document.write("    <div class=\"buttons\">\n");
document.write("      <a href=\"http://pastie.org/pastes/707317.txt\">\n");
document.write("      <img src=\"http://pastie.org/images/view.png\" height=\"20\" width=\"67\" /><\/a>\n");
document.write("    <\/div>\n");
document.write("  \n");
document.write("    <a href=\"http://pastie.org/707317\">Pastie #707317<\/a> linked directly from <a href=\"http://pastie.org/\">Pastie<\/a>.\n");
document.write("  <\/div><\/div>");

