Skip to content

Commit

Permalink
Lots of stubbing out existing ND functionality. Got starts of infrast…
Browse files Browse the repository at this point in the history
…ructure with db4o and is looking good so far
  • Loading branch information
chadmyers committed Feb 20, 2010
1 parent ad477e2 commit 0f17d81
Show file tree
Hide file tree
Showing 136 changed files with 23,741 additions and 160 deletions.
Binary file added lib/Rhino mocks/Rhino.Mocks.dll
Binary file not shown.
5,226 changes: 5,226 additions & 0 deletions lib/Rhino mocks/Rhino.Mocks.xml

Large diffs are not rendered by default.

Binary file added lib/StructureMap/StructureMap.AutoMocking.dll
Binary file not shown.
Binary file added lib/StructureMap/StructureMap.AutoMocking.pdb
Binary file not shown.
Binary file added lib/db4o/Db4objects.Db4o.Linq.dll
Binary file not shown.
Binary file added lib/db4o/Db4objects.Db4o.dll
Binary file not shown.
Binary file modified lib/fubumvc/FubuMVC.Core.dll
Binary file not shown.
Binary file modified lib/fubumvc/FubuMVC.Core.pdb
Binary file not shown.
Binary file modified lib/fubumvc/FubuMVC.StructureMap.dll
Binary file not shown.
Binary file modified lib/fubumvc/FubuMVC.StructureMap.pdb
Binary file not shown.
Binary file modified lib/fubumvc/FubuMVC.UI.dll
Binary file not shown.
Binary file modified lib/fubumvc/FubuMVC.UI.pdb
Binary file not shown.
Binary file modified lib/fubumvc/HtmlTags.dll
Binary file not shown.
Binary file modified lib/fubumvc/HtmlTags.pdb
Binary file not shown.
Binary file added lib/nunit/nunit-console-runner.dll
Binary file not shown.
Binary file added lib/nunit/nunit-console-x86.exe
Binary file not shown.
118 changes: 118 additions & 0 deletions lib/nunit/nunit-console-x86.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
<?xml version="1.0" encoding="Windows-1252"?>
<configuration>

<!-- Do not remove. Sets up configsectionhandler section for log4net -->
<configSections>
<section name="log4net" type="System.Configuration.IgnoreSectionHandler" />
</configSections>

<!--
Application settings for NUnit-console.exe. Do NOT put settings
for use by your tests here.
-->
<appSettings>

<!--
Specify the location to be used by .NET for the cache
-->
<add key="shadowfiles.path" value="%temp%\nunit20\ShadowCopyCache" />

</appSettings>

<system.diagnostics>
<switches>
<add name="NTrace" value="4" />
</switches>
<trace autoflush="true" indentsize="4">
<listeners>
<add name="NUnitInternalTrace" type="System.Diagnostics.TextWriterTraceListener"
initializeData="C:\NUnitPrimaryTrace.txt"/>
</listeners>
</trace>
</system.diagnostics>

<!--
The startup section may be used to specify the runtime versions
supported in the order that they will be used if more than one
is present. As supplied, this section is commented out, which
causes nunit-console to use the version of the framework with
which it was built.
Since .NET 1.0 does not recognize the <supportedRuntime> elements,
a <requiredRuntime> element is used in case it is the only version
of the framework that is installed.
-->
<!--
<startup>
<supportedRuntime version="v2.0.50727" />
<supportedRuntime version="v2.0.50215" />
<supportedRuntime version="v2.0.40607" />
<supportedRuntime version="v1.1.4322" />
<supportedRuntime version="v1.0.3705" />
<requiredRuntime version="v1.0.3705" />
</startup>
-->

<!--
The following <runtime> section allows running nunit under
.NET 1.0 by redirecting assemblies. The appliesTo attribute
causes the section to be ignored except under .NET 1.0version 1
on a machine with only the .NET version 1.0 runtime installed.
If application and its tests were built for .NET 1.1 you will
also need to redirect system assemblies in the test config file.
-->

<runtime>

<legacyUnhandledExceptionPolicy enabled="1" />

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
appliesTo="v1.0.3705">

<dependentAssembly>
<assemblyIdentity name="System"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>

<dependentAssembly>
<assemblyIdentity name="System.Data"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>

<dependentAssembly>
<assemblyIdentity name="System.Drawing"
publicKeyToken="b03f5f7f11d50a3a"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>

<dependentAssembly>
<assemblyIdentity name="System.Windows.Forms"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>

<dependentAssembly>
<assemblyIdentity name="System.Xml"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>


</assemblyBinding>

</runtime>

</configuration>
Binary file added lib/nunit/nunit-console.exe
Binary file not shown.
121 changes: 121 additions & 0 deletions lib/nunit/nunit-console.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<?xml version="1.0" encoding="Windows-1252"?>
<configuration>

<!-- Do not remove. Sets up configsectionhandler section for log4net -->
<configSections>
<section name="log4net" type="System.Configuration.IgnoreSectionHandler" />
</configSections>

<!--
Application settings for NUnit-console.exe. Do NOT put settings
for use by your tests here.
-->
<appSettings>

<!--
Specify the location to be used by .NET for the cache
-->
<add key="shadowfiles.path" value="%temp%\nunit20\ShadowCopyCache" />

</appSettings>

<system.diagnostics>
<switches>
<add name="NTrace" value="4" />
</switches>
<trace autoflush="true" indentsize="4">
<listeners>
<add name="NUnitInternalTrace" type="System.Diagnostics.TextWriterTraceListener"
initializeData="C:\NUnitPrimaryTrace.txt"/>
</listeners>
</trace>
</system.diagnostics>

<!--
The startup section may be used to specify the runtime versions
supported in the order that they will be used if more than one
is present. As supplied, this section is commented out, which
causes nunit-console to use the version of the framework with
which it was built.
Since .NET 1.0 does not recognize the <supportedRuntime> elements,
a <requiredRuntime> element is used in case it is the only version
of the framework that is installed.
-->
<!--
<startup>
<supportedRuntime version="v2.0.50727" />
<supportedRuntime version="v2.0.50215" />
<supportedRuntime version="v2.0.40607" />
<supportedRuntime version="v1.1.4322" />
<supportedRuntime version="v1.0.3705" />
<requiredRuntime version="v1.0.3705" />
</startup>
-->

<!--
The following <runtime> section allows running nunit under
.NET 1.0 by redirecting assemblies. The appliesTo attribute
causes the section to be ignored except under .NET 1.0version 1
on a machine with only the .NET version 1.0 runtime installed.
If application and its tests were built for .NET 1.1 you will
also need to redirect system assemblies in the test config file.
-->

<runtime>

<legacyUnhandledExceptionPolicy enabled="1" />

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="addins"/>
</assemblyBinding>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
appliesTo="v1.0.3705">

<dependentAssembly>
<assemblyIdentity name="System"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>

<dependentAssembly>
<assemblyIdentity name="System.Data"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>

<dependentAssembly>
<assemblyIdentity name="System.Drawing"
publicKeyToken="b03f5f7f11d50a3a"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>

<dependentAssembly>
<assemblyIdentity name="System.Windows.Forms"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>

<dependentAssembly>
<assemblyIdentity name="System.Xml"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>

</assemblyBinding>

</runtime>

</configuration>
Binary file added lib/nunit/nunit.core.dll
Binary file not shown.
Binary file added lib/nunit/nunit.core.extensions.dll
Binary file not shown.
Binary file added lib/nunit/nunit.core.interfaces.dll
Binary file not shown.
Binary file added lib/nunit/nunit.framework.dll
Binary file not shown.
Binary file added lib/nunit/nunit.util.dll
Binary file not shown.
15 changes: 15 additions & 0 deletions src/FubuDinner.Test/Actions/AboutActionTester.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using FubuDinner.Web.Actions.Home;
using NUnit.Framework;

namespace FubuDinner.Test.Actions
{
[TestFixture]
public class AboutActionTester
{
[Test]
public void should_return_model()
{
new AboutAction().Execute(null).ShouldNotBeNull();
}
}
}
15 changes: 15 additions & 0 deletions src/FubuDinner.Test/Actions/HomeActionTester.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using FubuDinner.Web.Actions.Home;
using NUnit.Framework;

namespace FubuDinner.Test.Actions
{
[TestFixture]
public class HomeActionTester
{
[Test]
public void should_return_model()
{
new HomeAction().Execute(null).ShouldNotBeNull();
}
}
}
22 changes: 22 additions & 0 deletions src/FubuDinner.Test/Actions/MastheadActionTester.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using FubuDinner.Web.Actions.Shared;
using NUnit.Framework;

namespace FubuDinner.Test.Actions
{
[TestFixture]
public class MastheadActionTester
{
[Test]
public void should_default_to_not_displaying_the_search_area()
{
new MastheadAction().Execute(new MastheadModel()).ShowSearch.ShouldBeFalse();
}

[Test]
public void should_respect_switch_for_showing_search_area()
{
var model = new MastheadModel{ShowSearch = true};
new MastheadAction().Execute(model).ShowSearch.ShouldBeTrue();
}
}
}
89 changes: 89 additions & 0 deletions src/FubuDinner.Test/FubuDinner.Test.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{233B7C0E-0D73-4268-A7F5-9738ED407C52}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>FubuDinner.Test</RootNamespace>
<AssemblyName>FubuDinner.Test</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="FubuMVC.Core, Version=0.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\fubumvc\FubuMVC.Core.dll</HintPath>
</Reference>
<Reference Include="nunit.framework, Version=2.4.6.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\nunit\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="Rhino.Mocks, Version=3.5.0.1337, Culture=neutral, PublicKeyToken=0b3305902db7183f, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\Rhino mocks\Rhino.Mocks.dll</HintPath>
</Reference>
<Reference Include="StructureMap, Version=2.6.2.0, Culture=neutral, PublicKeyToken=e60ad81abae3c223, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\fubumvc\StructureMap.dll</HintPath>
</Reference>
<Reference Include="StructureMap.AutoMocking, Version=2.6.2.0, Culture=neutral, PublicKeyToken=e60ad81abae3c223, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\StructureMap\StructureMap.AutoMocking.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Actions\AboutActionTester.cs" />
<Compile Include="Actions\HomeActionTester.cs" />
<Compile Include="Actions\MastheadActionTester.cs" />
<Compile Include="InteractionContext.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SpecificationExtensions.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\FubuMVC.NerdDinner.Web\FubuDinner.Web.csproj">
<Project>{0D7B191E-2AA4-4CF0-BDE1-3B7B680F23F4}</Project>
<Name>FubuDinner.Web</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
Loading

0 comments on commit 0f17d81

Please sign in to comment.