Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Commiting kkozmic's changes

  • Loading branch information...
commit 708e394515163d8054fbe265fd25e419841a08e9 1 parent 8309d1f
@mikehadlow authored
View
1  .gitignore
@@ -9,4 +9,3 @@
*.DS_Store
[Tt]humbs.db
_ReSharper.*
-*.resharper
View
170 src/Suteki.TardisBank.Tests/Container/ControllerRegistrationTests.cs
@@ -1,86 +1,86 @@
-using System;
-using System.Linq;
-using System.Web.Mvc;
-using Castle.Core;
-using Castle.Core.Internal;
-using Castle.MicroKernel;
-using Castle.Windsor;
-using NUnit.Framework;
-using Suteki.TardisBank.Controllers;
-using Suteki.TardisBank.IoC;
-
-namespace Suteki.TardisBank.Tests.Container
-{
- [TestFixture]
- public class ControllerRegistrationTests
- {
-
- [SetUp]
- public void SetUp()
- {
- _types = _type.Assembly.GetExportedTypes();
- _container = new WindsorContainer().Install(new ControllersInstaller());
- }
-
- private IWindsorContainer _container;
- private readonly Type _type = typeof (HomeController);
- private Type[] _types;
-
- private IHandler[] ControllerHandlers()
- {
- return _container.Kernel.GetAssignableHandlers(typeof (IController));
- }
-
- [Test]
- public void Controllers_are_transient()
- {
- var nonTransientControllers = ControllerHandlers()
- .Where(h => h.ComponentModel.LifestyleType != LifestyleType.Transient);
-
- Assert.IsEmpty(nonTransientControllers.ToArray());
- }
-
- [Test]
- public void Controllers_have_Controller_name_suffix()
- {
- var controllers = ControllerHandlers().Select(h => h.ComponentModel.Implementation).ToSet();
- var namedControllers = _types.Where(t => t.Name.EndsWith("Controller")).ToSet();
-
- controllers.SymmetricExceptWith(namedControllers);
-
- Assert.IsEmpty(controllers.ToArray());
- }
-
-
- [Test]
- public void Controllers_implement_IController()
- {
- var controllers = ControllerHandlers().Select(h => h.ComponentModel.Implementation).ToSet();
- var typedControllers = _types.Where(t => t.Is<IController>()).ToSet();
-
- controllers.SymmetricExceptWith(typedControllers);
-
- Assert.IsEmpty(controllers.ToArray());
- }
-
- [Test]
- public void Controllers_live_in_controllers_namespace()
- {
- var controllers = ControllerHandlers().Select(h => h.ComponentModel.Implementation).ToSet();
- var typesInControllersNamespace = _types.Where(t => t.Namespace == _type.Namespace).ToSet();
-
- controllers.SymmetricExceptWith(typesInControllersNamespace);
-
- Assert.IsEmpty(controllers.ToArray());
- }
-
- [Test]
- public void Controllers_use_impl_name_as_id()
- {
- var improperlyNamedControllers = ControllerHandlers()
- .Where(h => h.ComponentModel.Implementation.Name != h.ComponentModel.Name);
-
- Assert.IsEmpty(improperlyNamedControllers.ToArray());
- }
- }
+using System;
+using System.Linq;
+using System.Web.Mvc;
+using Castle.Core;
+using Castle.Core.Internal;
+using Castle.MicroKernel;
+using Castle.Windsor;
+using NUnit.Framework;
+using Suteki.TardisBank.Controllers;
+using Suteki.TardisBank.IoC;
+
+namespace Suteki.TardisBank.Tests.Container
+{
+ [TestFixture]
+ public class ControllerRegistrationTests
+ {
+
+ [SetUp]
+ public void SetUp()
+ {
+ _types = _type.Assembly.GetExportedTypes();
+ _container = new WindsorContainer().Install(new ControllersInstaller());
+ }
+
+ private IWindsorContainer _container;
+ private readonly Type _type = typeof (HomeController);
+ private Type[] _types;
+
+ private IHandler[] ControllerHandlers()
+ {
+ return _container.Kernel.GetAssignableHandlers(typeof (IController));
+ }
+
+ [Test]
+ public void Controllers_are_transient()
+ {
+ var nonTransientControllers = ControllerHandlers()
+ .Where(h => h.ComponentModel.LifestyleType != LifestyleType.Transient);
+
+ Assert.IsEmpty(nonTransientControllers.ToArray());
+ }
+
+ [Test]
+ public void Controllers_have_Controller_name_suffix()
+ {
+ var controllers = ControllerHandlers().Select(h => h.ComponentModel.Implementation).ToSet();
+ var namedControllers = _types.Where(t => t.Name.EndsWith("Controller")).ToSet();
+
+ controllers.SymmetricExceptWith(namedControllers);
+
+ Assert.IsEmpty(controllers.ToArray());
+ }
+
+
+ [Test]
+ public void Controllers_implement_IController()
+ {
+ var controllers = ControllerHandlers().Select(h => h.ComponentModel.Implementation).ToSet();
+ var typedControllers = _types.Where(t => t.Is<IController>()).ToSet();
+
+ controllers.SymmetricExceptWith(typedControllers);
+
+ Assert.IsEmpty(controllers.ToArray());
+ }
+
+ [Test]
+ public void Controllers_live_in_controllers_namespace()
+ {
+ var controllers = ControllerHandlers().Select(h => h.ComponentModel.Implementation).ToSet();
+ var typesInControllersNamespace = _types.Where(t => t.Namespace == _type.Namespace).ToSet();
+
+ controllers.SymmetricExceptWith(typesInControllersNamespace);
+
+ Assert.IsEmpty(controllers.ToArray());
+ }
+
+ [Test]
+ public void Controllers_use_impl_name_as_id()
+ {
+ var improperlyNamedControllers = ControllerHandlers()
+ .Where(h => h.ComponentModel.Implementation.Name != h.ComponentModel.Name);
+
+ Assert.IsEmpty(improperlyNamedControllers.ToArray());
+ }
+ }
}
View
22 src/Suteki.TardisBank.Tests/Container/SetHelper.cs
@@ -1,12 +1,12 @@
-using System.Collections.Generic;
-
-namespace Suteki.TardisBank.Tests.Container
-{
- public static class SetHelper
- {
- public static HashSet<T> ToSet<T>(this IEnumerable<T> x)
- {
- return new HashSet<T>(x);
- }
- }
+using System.Collections.Generic;
+
+namespace Suteki.TardisBank.Tests.Container
+{
+ public static class SetHelper
+ {
+ public static HashSet<T> ToSet<T>(this IEnumerable<T> x)
+ {
+ return new HashSet<T>(x);
+ }
+ }
}
View
226 src/Suteki.TardisBank.Tests/Suteki.TardisBank.Tests.csproj
@@ -1,120 +1,120 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.30703</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{68141492-9F9B-49A1-8AC2-EF330F521FBD}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Suteki.TardisBank.Tests</RootNamespace>
- <AssemblyName>Suteki.TardisBank.Tests</AssemblyName>
- <TargetFrameworkVersion>v4.0</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>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- </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="Castle.Core">
- <HintPath>..\packages\Castle.Core.2.5.1\lib\NET35\Castle.Core.dll</HintPath>
- </Reference>
- <Reference Include="Castle.Windsor, Version=2.5.1.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\Castle.Windsor.2.5.1\lib\NET40\Castle.Windsor.dll</HintPath>
- </Reference>
- <Reference Include="nunit.framework, Version=2.5.7.10213, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\NUnit.2.5.7.10213\lib\nunit.framework.dll</HintPath>
- </Reference>
- <Reference Include="nunit.mocks, Version=2.5.7.10213, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\NUnit.2.5.7.10213\lib\nunit.mocks.dll</HintPath>
- </Reference>
- <Reference Include="pnunit.framework">
- <HintPath>..\packages\NUnit.2.5.7.10213\lib\pnunit.framework.dll</HintPath>
- </Reference>
- <Reference Include="Raven.Client.Embedded">
- <HintPath>..\..\NonPackageLibraries\RavenDb\Client\Raven.Client.Embedded.dll</HintPath>
- </Reference>
- <Reference Include="Raven.Client.Lightweight, Version=1.0.0.0, Culture=neutral, PublicKeyToken=37f41c7f99471593, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\NonPackageLibraries\RavenDb\Client\Raven.Client.Lightweight.dll</HintPath>
- </Reference>
- <Reference Include="Raven.Storage.Managed">
- <HintPath>..\..\NonPackageLibraries\RavenDb\Client\Raven.Storage.Managed.dll</HintPath>
- </Reference>
- <Reference Include="Rhino.Mocks">
- <HintPath>..\packages\RhinoMocks.3.6\lib\Rhino.Mocks.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.ComponentModel.Composition" />
- <Reference Include="System.Core" />
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System.Web" />
- <Reference Include="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\NonPackageLibraries\System.Web.Mvc.dll</HintPath>
- </Reference>
- <Reference Include="System.Web.Routing" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Container\ControllerRegistrationTests.cs" />
- <Compile Include="Container\SetHelper.cs" />
- <Compile Include="Controllers\HomeControllerTests.cs" />
- <Compile Include="Db\LocalClientTest.cs" />
- <Compile Include="Helpers\ActionResultExtensions.cs" />
- <Compile Include="Model\ChildTests.cs" />
- <Compile Include="Model\MakePaymentTests.cs" />
- <Compile Include="Model\MessageCountLimitTests.cs" />
- <Compile Include="Model\MessageTests.cs" />
- <Compile Include="Model\ParentTests.cs" />
- <Compile Include="Model\PaymentSchedulingQueryTests.cs" />
- <Compile Include="Model\PaymentSchedulingTests.cs" />
- <Compile Include="Model\TransactionCountLimitTests.cs" />
- <Compile Include="Model\UserActivationTests.cs" />
- <Compile Include="Model\UserTests.cs" />
- <Compile Include="Model\WithdrawlCashTests.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="Services\EmailServiceTests.cs" />
- <Compile Include="Spikes\RavenDbAnyOfPropertyCollection.cs" />
- <Compile Include="Spikes\RavenDbDoesntDoSelectMany.cs" />
- <Compile Include="Spikes\RavenDbSchedulingWithIndex.cs" />
- <Compile Include="Spikes\ThreadCurrentCultureSpike.cs" />
- <Compile Include="TestExtensions.cs" />
- <Compile Include="Version.cs" />
- </ItemGroup>
- <ItemGroup>
- <None Include="packages.config" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\Suteki.TardisBank\Suteki.TardisBank.csproj">
- <Project>{0BCB6958-4C41-4E6E-95A4-5BB087F16D93}</Project>
- <Name>Suteki.TardisBank</Name>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{68141492-9F9B-49A1-8AC2-EF330F521FBD}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Suteki.TardisBank.Tests</RootNamespace>
+ <AssemblyName>Suteki.TardisBank.Tests</AssemblyName>
+ <TargetFrameworkVersion>v4.0</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>
+ <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+ </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="Castle.Core">
+ <HintPath>..\packages\Castle.Core.2.5.1\lib\NET35\Castle.Core.dll</HintPath>
+ </Reference>
+ <Reference Include="Castle.Windsor, Version=2.5.1.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\packages\Castle.Windsor.2.5.1\lib\NET40\Castle.Windsor.dll</HintPath>
+ </Reference>
+ <Reference Include="nunit.framework, Version=2.5.7.10213, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\packages\NUnit.2.5.7.10213\lib\nunit.framework.dll</HintPath>
+ </Reference>
+ <Reference Include="nunit.mocks, Version=2.5.7.10213, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\packages\NUnit.2.5.7.10213\lib\nunit.mocks.dll</HintPath>
+ </Reference>
+ <Reference Include="pnunit.framework">
+ <HintPath>..\packages\NUnit.2.5.7.10213\lib\pnunit.framework.dll</HintPath>
+ </Reference>
+ <Reference Include="Raven.Client.Embedded">
+ <HintPath>..\..\NonPackageLibraries\RavenDb\Client\Raven.Client.Embedded.dll</HintPath>
+ </Reference>
+ <Reference Include="Raven.Client.Lightweight, Version=1.0.0.0, Culture=neutral, PublicKeyToken=37f41c7f99471593, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\NonPackageLibraries\RavenDb\Client\Raven.Client.Lightweight.dll</HintPath>
+ </Reference>
+ <Reference Include="Raven.Storage.Managed">
+ <HintPath>..\..\NonPackageLibraries\RavenDb\Client\Raven.Storage.Managed.dll</HintPath>
+ </Reference>
+ <Reference Include="Rhino.Mocks">
+ <HintPath>..\packages\RhinoMocks.3.6\lib\Rhino.Mocks.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.ComponentModel.Composition" />
+ <Reference Include="System.Core" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Web" />
+ <Reference Include="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\NonPackageLibraries\System.Web.Mvc.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.Routing" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Container\ControllerRegistrationTests.cs" />
+ <Compile Include="Container\SetHelper.cs" />
+ <Compile Include="Controllers\HomeControllerTests.cs" />
+ <Compile Include="Db\LocalClientTest.cs" />
+ <Compile Include="Helpers\ActionResultExtensions.cs" />
+ <Compile Include="Model\ChildTests.cs" />
+ <Compile Include="Model\MakePaymentTests.cs" />
+ <Compile Include="Model\MessageCountLimitTests.cs" />
+ <Compile Include="Model\MessageTests.cs" />
+ <Compile Include="Model\ParentTests.cs" />
+ <Compile Include="Model\PaymentSchedulingQueryTests.cs" />
+ <Compile Include="Model\PaymentSchedulingTests.cs" />
+ <Compile Include="Model\TransactionCountLimitTests.cs" />
+ <Compile Include="Model\UserActivationTests.cs" />
+ <Compile Include="Model\UserTests.cs" />
+ <Compile Include="Model\WithdrawlCashTests.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Services\EmailServiceTests.cs" />
+ <Compile Include="Spikes\RavenDbAnyOfPropertyCollection.cs" />
+ <Compile Include="Spikes\RavenDbDoesntDoSelectMany.cs" />
+ <Compile Include="Spikes\RavenDbSchedulingWithIndex.cs" />
+ <Compile Include="Spikes\ThreadCurrentCultureSpike.cs" />
+ <Compile Include="TestExtensions.cs" />
+ <Compile Include="Version.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Suteki.TardisBank\Suteki.TardisBank.csproj">
+ <Project>{0BCB6958-4C41-4E6E-95A4-5BB087F16D93}</Project>
+ <Name>Suteki.TardisBank</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>
View
12 src/Suteki.TardisBank.Web/Global.asax.cs
@@ -51,12 +51,12 @@ protected void Application_Start()
protected void InitialiseContainer()
{
- if (container == null)
- {
- container = new WindsorContainer()
- .Install(
- Configuration.FromXmlFile("Windsor.xml"),
- FromAssembly.InDirectory(new AssemblyFilter(HttpRuntime.BinDirectory, "Suteki.*.dll")));
+ if (container == null)
+ {
+ container = new WindsorContainer()
+ .Install(
+ Configuration.FromXmlFile("Windsor.xml"),
+ FromAssembly.InDirectory(new AssemblyFilter(HttpRuntime.BinDirectory, "Suteki.*.dll")));
}
}
View
2  src/Suteki.TardisBank.Web/Suteki.TardisBank.Web.csproj
@@ -90,6 +90,8 @@
<Content Include="Content\Images\TardisBankLogo_32.png" />
<Content Include="Content\Images\TardisBankLogo_64.png" />
<Content Include="Content\Images\TardisBankLogo_75.png" />
+ <Content Include="Content\Images\TardisBankLogo_Shadow.png" />
+ <Content Include="Content\Images\TardisBankLogo_ShadowWhite.png" />
<Content Include="Content\Images\title_background.png" />
<Content Include="Content\menu_style.css" />
<Content Include="Content\reset.css" />
View
4 src/Suteki.TardisBank/Controllers/AccountController.cs
@@ -1,6 +1,6 @@
using System;
-using System.Web.Mvc;
-using Suteki.TardisBank.Helpers;
+using System.Web.Mvc;
+using Suteki.TardisBank.Helpers;
using Suteki.TardisBank.Model;
using Suteki.TardisBank.Mvc;
using Suteki.TardisBank.Services;
View
4 src/Suteki.TardisBank/Controllers/AdminController.cs
@@ -1,5 +1,5 @@
-using System.Web.Mvc;
-using Suteki.TardisBank.Helpers;
+using System.Web.Mvc;
+using Suteki.TardisBank.Helpers;
using Suteki.TardisBank.Model;
using Suteki.TardisBank.Services;
View
4 src/Suteki.TardisBank/Controllers/ChildController.cs
@@ -1,5 +1,5 @@
-using System.Web.Mvc;
-using Suteki.TardisBank.Helpers;
+using System.Web.Mvc;
+using Suteki.TardisBank.Helpers;
using Suteki.TardisBank.Model;
using Suteki.TardisBank.Mvc;
using Suteki.TardisBank.Services;
View
4 src/Suteki.TardisBank/Controllers/ScheduleController.cs
@@ -1,6 +1,6 @@
using System;
-using System.Web.Mvc;
-using Suteki.TardisBank.Helpers;
+using System.Web.Mvc;
+using Suteki.TardisBank.Helpers;
using Suteki.TardisBank.Model;
using Suteki.TardisBank.Mvc;
using Suteki.TardisBank.Services;
View
4 src/Suteki.TardisBank/Controllers/ScheduleRunnerController.cs
@@ -1,6 +1,6 @@
using System;
-using System.Web.Mvc;
-using Suteki.TardisBank.Helpers;
+using System.Web.Mvc;
+using Suteki.TardisBank.Helpers;
using Suteki.TardisBank.IoC;
using Suteki.TardisBank.Mvc;
using Suteki.TardisBank.Services;
View
4 src/Suteki.TardisBank/Controllers/UserController.cs
@@ -1,6 +1,6 @@
using System;
-using System.Web.Mvc;
-using Suteki.TardisBank.Helpers;
+using System.Web.Mvc;
+using Suteki.TardisBank.Helpers;
using Suteki.TardisBank.Model;
using Suteki.TardisBank.Mvc;
using Suteki.TardisBank.Services;
View
4 src/Suteki.TardisBank/Helpers/StatusCode.cs
@@ -1,5 +1,5 @@
-using System.Web.Mvc;
-
+using System.Web.Mvc;
+
namespace Suteki.TardisBank.Helpers
{
public static class StatusCode
View
6 src/Suteki.TardisBank/IoC/WindsorControllerFactory.cs
@@ -1,6 +1,6 @@
using System;
using System.Web.Mvc;
-using System.Web.Routing;
+using System.Web.Routing;
using Castle.MicroKernel;
namespace Suteki.TardisBank.IoC
@@ -33,8 +33,8 @@ public override IController CreateController(RequestContext requestContext, stri
{
throw new ApplicationException(string.Format("No controller with name '{0}' found", controllerName), e);
}
- }
-
+ }
+
public override void ReleaseController(IController controller)
{
if (controller == null)
View
264 src/Suteki.TardisBank/Suteki.TardisBank.csproj
@@ -1,139 +1,139 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.30703</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{0BCB6958-4C41-4E6E-95A4-5BB087F16D93}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Suteki.TardisBank</RootNamespace>
- <AssemblyName>Suteki.TardisBank</AssemblyName>
- <TargetFrameworkVersion>v4.0</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>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- </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="Castle.Core">
- <HintPath>..\packages\Castle.Core.2.5.1\lib\NET35\Castle.Core.dll</HintPath>
- </Reference>
- <Reference Include="Castle.Facilities.Synchronize">
- <HintPath>..\packages\Castle.Windsor.2.5.1\lib\NET40\Castle.Facilities.Synchronize.dll</HintPath>
- </Reference>
- <Reference Include="Castle.Windsor">
- <HintPath>..\packages\Castle.Windsor.2.5.1\lib\NET40\Castle.Windsor.dll</HintPath>
- </Reference>
- <Reference Include="DotNetOpenAuth">
- <HintPath>..\packages\DotNetOpenAuth.3.4.5.10202\lib\DotNetOpenAuth.dll</HintPath>
- </Reference>
- <Reference Include="Newtonsoft.Json">
- <HintPath>..\..\NonPackageLibraries\RavenDb\Client\Newtonsoft.Json.dll</HintPath>
- </Reference>
- <Reference Include="Raven.Client.Lightweight">
- <HintPath>..\..\NonPackageLibraries\RavenDb\Client\Raven.Client.Lightweight.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.ComponentModel.Composition" />
- <Reference Include="System.ComponentModel.DataAnnotations" />
- <Reference Include="System.Core" />
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System.Web" />
- <Reference Include="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\NonPackageLibraries\System.Web.Mvc.dll</HintPath>
- </Reference>
- <Reference Include="System.Web.Routing" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="..\Version.cs">
- <Link>Version.cs</Link>
- </Compile>
- <Compile Include="Controllers\AccountController.cs" />
- <Compile Include="Controllers\AdminController.cs" />
- <Compile Include="Controllers\AnalyticsController.cs" />
- <Compile Include="Controllers\ChildController.cs" />
- <Compile Include="Controllers\HomeController.cs" />
- <Compile Include="Controllers\MenuController.cs" />
- <Compile Include="Controllers\OpenidController.cs" />
- <Compile Include="Controllers\PasswordController.cs" />
- <Compile Include="Controllers\ScheduleController.cs" />
- <Compile Include="Controllers\ScheduleRunnerController.cs" />
- <Compile Include="Helpers\StatusCode.cs" />
- <Compile Include="Controllers\UserController.cs" />
- <Compile Include="Events\DomainEvent.cs" />
- <Compile Include="Events\IDomainEvent.cs" />
- <Compile Include="Events\NewParentCreatedEvent.cs" />
- <Compile Include="Events\SendMessageEvent.cs" />
- <Compile Include="Handlers\IHandle.cs" />
- <Compile Include="Extensions\StringExtensions.cs" />
- <Compile Include="Handlers\SendMessageEmailHandler.cs" />
- <Compile Include="Handlers\SendRegistrationEmailHandler.cs" />
- <Compile Include="Indexes\Child_ByPendingSchedule.cs" />
- <Compile Include="IoC\ControllersInstaller.cs" />
- <Compile Include="IoC\MvcGooInstaller.cs" />
- <Compile Include="IoC\HandlerInstaller.cs" />
- <Compile Include="IoC\RavenInstaller.cs" />
- <Compile Include="IoC\ServicesInstaller.cs" />
- <Compile Include="IoC\TardisConfiguration.cs" />
- <Compile Include="IoC\WindsorControllerFactory.cs" />
- <Compile Include="Model\Account.cs" />
- <Compile Include="Model\Child.cs" />
- <Compile Include="Model\Interval.cs" />
- <Compile Include="Model\Message.cs" />
- <Compile Include="Model\Parent.cs" />
- <Compile Include="Model\PaymentSchedule.cs" />
- <Compile Include="Model\Transaction.cs" />
- <Compile Include="Model\User.cs" />
- <Compile Include="Mvc\Current.cs" />
- <Compile Include="Mvc\UnitOfWorkAttribute.cs" />
- <Compile Include="Mvc\UserLocaleModule.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="Services\EmailService.cs" />
- <Compile Include="Services\FormsAuthenticationService.cs" />
- <Compile Include="Services\HttpContextService.cs" />
- <Compile Include="Services\OpenIdService.cs" />
- <Compile Include="Services\SchedulerService.cs" />
- <Compile Include="Services\UserService.cs" />
- <Compile Include="TardisBankException.cs" />
- <Compile Include="ViewModel\AccountSummaryViewModel.cs" />
- <Compile Include="ViewModel\AddScheduleViewModel.cs" />
- <Compile Include="ViewModel\DeleteChildConfirmViewModel.cs" />
- <Compile Include="ViewModel\ForgottenPasswordViewModel.cs" />
- <Compile Include="ViewModel\LoginViewModel.cs" />
- <Compile Include="ViewModel\MakePaymentViewModel.cs" />
- <Compile Include="ViewModel\RegistrationViewModel.cs" />
- <Compile Include="ViewModel\UserViewModel.cs" />
- <Compile Include="ViewModel\WithdrawCashForChildViewModel.cs" />
- <Compile Include="ViewModel\WithdrawCashViewModel.cs" />
- </ItemGroup>
- <ItemGroup>
- <None Include="packages.config" />
- </ItemGroup>
- <ItemGroup />
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{0BCB6958-4C41-4E6E-95A4-5BB087F16D93}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Suteki.TardisBank</RootNamespace>
+ <AssemblyName>Suteki.TardisBank</AssemblyName>
+ <TargetFrameworkVersion>v4.0</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>
+ <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+ </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="Castle.Core">
+ <HintPath>..\packages\Castle.Core.2.5.1\lib\NET35\Castle.Core.dll</HintPath>
+ </Reference>
+ <Reference Include="Castle.Facilities.Synchronize">
+ <HintPath>..\packages\Castle.Windsor.2.5.1\lib\NET40\Castle.Facilities.Synchronize.dll</HintPath>
+ </Reference>
+ <Reference Include="Castle.Windsor">
+ <HintPath>..\packages\Castle.Windsor.2.5.1\lib\NET40\Castle.Windsor.dll</HintPath>
+ </Reference>
+ <Reference Include="DotNetOpenAuth">
+ <HintPath>..\packages\DotNetOpenAuth.3.4.5.10202\lib\DotNetOpenAuth.dll</HintPath>
+ </Reference>
+ <Reference Include="Newtonsoft.Json">
+ <HintPath>..\..\NonPackageLibraries\RavenDb\Client\Newtonsoft.Json.dll</HintPath>
+ </Reference>
+ <Reference Include="Raven.Client.Lightweight">
+ <HintPath>..\..\NonPackageLibraries\RavenDb\Client\Raven.Client.Lightweight.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.ComponentModel.Composition" />
+ <Reference Include="System.ComponentModel.DataAnnotations" />
+ <Reference Include="System.Core" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Web" />
+ <Reference Include="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\NonPackageLibraries\System.Web.Mvc.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.Routing" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="..\Version.cs">
+ <Link>Version.cs</Link>
+ </Compile>
+ <Compile Include="Controllers\AccountController.cs" />
+ <Compile Include="Controllers\AdminController.cs" />
+ <Compile Include="Controllers\AnalyticsController.cs" />
+ <Compile Include="Controllers\ChildController.cs" />
+ <Compile Include="Controllers\HomeController.cs" />
+ <Compile Include="Controllers\MenuController.cs" />
+ <Compile Include="Controllers\OpenidController.cs" />
+ <Compile Include="Controllers\PasswordController.cs" />
+ <Compile Include="Controllers\ScheduleController.cs" />
+ <Compile Include="Controllers\ScheduleRunnerController.cs" />
+ <Compile Include="Helpers\StatusCode.cs" />
+ <Compile Include="Controllers\UserController.cs" />
+ <Compile Include="Events\DomainEvent.cs" />
+ <Compile Include="Events\IDomainEvent.cs" />
+ <Compile Include="Events\NewParentCreatedEvent.cs" />
+ <Compile Include="Events\SendMessageEvent.cs" />
+ <Compile Include="Handlers\IHandle.cs" />
+ <Compile Include="Extensions\StringExtensions.cs" />
+ <Compile Include="Handlers\SendMessageEmailHandler.cs" />
+ <Compile Include="Handlers\SendRegistrationEmailHandler.cs" />
+ <Compile Include="Indexes\Child_ByPendingSchedule.cs" />
+ <Compile Include="IoC\ControllersInstaller.cs" />
+ <Compile Include="IoC\MvcGooInstaller.cs" />
+ <Compile Include="IoC\HandlerInstaller.cs" />
+ <Compile Include="IoC\RavenInstaller.cs" />
+ <Compile Include="IoC\ServicesInstaller.cs" />
+ <Compile Include="IoC\TardisConfiguration.cs" />
+ <Compile Include="IoC\WindsorControllerFactory.cs" />
+ <Compile Include="Model\Account.cs" />
+ <Compile Include="Model\Child.cs" />
+ <Compile Include="Model\Interval.cs" />
+ <Compile Include="Model\Message.cs" />
+ <Compile Include="Model\Parent.cs" />
+ <Compile Include="Model\PaymentSchedule.cs" />
+ <Compile Include="Model\Transaction.cs" />
+ <Compile Include="Model\User.cs" />
+ <Compile Include="Mvc\Current.cs" />
+ <Compile Include="Mvc\UnitOfWorkAttribute.cs" />
+ <Compile Include="Mvc\UserLocaleModule.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Services\EmailService.cs" />
+ <Compile Include="Services\FormsAuthenticationService.cs" />
+ <Compile Include="Services\HttpContextService.cs" />
+ <Compile Include="Services\OpenIdService.cs" />
+ <Compile Include="Services\SchedulerService.cs" />
+ <Compile Include="Services\UserService.cs" />
+ <Compile Include="TardisBankException.cs" />
+ <Compile Include="ViewModel\AccountSummaryViewModel.cs" />
+ <Compile Include="ViewModel\AddScheduleViewModel.cs" />
+ <Compile Include="ViewModel\DeleteChildConfirmViewModel.cs" />
+ <Compile Include="ViewModel\ForgottenPasswordViewModel.cs" />
+ <Compile Include="ViewModel\LoginViewModel.cs" />
+ <Compile Include="ViewModel\MakePaymentViewModel.cs" />
+ <Compile Include="ViewModel\RegistrationViewModel.cs" />
+ <Compile Include="ViewModel\UserViewModel.cs" />
+ <Compile Include="ViewModel\WithdrawCashForChildViewModel.cs" />
+ <Compile Include="ViewModel\WithdrawCashViewModel.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ </ItemGroup>
+ <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>
Please sign in to comment.
Something went wrong with that request. Please try again.