Permalink
Browse files

- Moved sample application to SampleApplication directory.

- Installed NUnit in sample application using NuGet.
  • Loading branch information...
1 parent 42e5a0f commit 536073b4d99363ca8ec18d0c7f499c3274404425 Kristoffer Ahl committed Nov 21, 2012
Showing with 1,334 additions and 1,333 deletions.
  1. +0 −4 FluentSecurity.SampleApplication.Tests/packages.config
  2. +2 −2 FluentSecurity.sln
  3. +1 −1 Packages/repositories.config
  4. +126 −124 ...Application}/FluentSecurity.SampleApplication.Tests/FluentSecurity.SampleApplication.Tests.csproj
  5. +78 −78 ...cs → SampleApplication/FluentSecurity.SampleApplication.Tests/SecurityConfigurationTestsStyle1.cs
  6. +51 −51 ...cs → SampleApplication/FluentSecurity.SampleApplication.Tests/SecurityConfigurationTestsStyle2.cs
  7. +4 −0 SampleApplication/FluentSecurity.SampleApplication.Tests/packages.config
  8. +15 −15 { → SampleApplication}/FluentSecurity.SampleApplication/AdministratorPolicy.cs
  9. 0 ...mpleApplication}/FluentSecurity.SampleApplication/Areas/ExampleArea/Controllers/HomeController.cs
  10. 0 ...pleApplication}/FluentSecurity.SampleApplication/Areas/ExampleArea/ExampleAreaAreaRegistration.cs
  11. 0 ...pplication}/FluentSecurity.SampleApplication/Areas/ExampleArea/Views/Home/AdministratorsOnly.aspx
  12. 0 { → SampleApplication}/FluentSecurity.SampleApplication/Areas/ExampleArea/Views/Home/Index.aspx
  13. 0 ...pleApplication}/FluentSecurity.SampleApplication/Areas/ExampleArea/Views/Home/PublishersOnly.aspx
  14. 0 { → SampleApplication}/FluentSecurity.SampleApplication/Areas/ExampleArea/Views/Web.config
  15. +47 −47 { → SampleApplication}/FluentSecurity.SampleApplication/Bootstrapper.cs
  16. +42 −42 { → SampleApplication}/FluentSecurity.SampleApplication/Controllers/AccountController.cs
  17. +27 −27 { → SampleApplication}/FluentSecurity.SampleApplication/Controllers/AdminController.cs
  18. 0 { → SampleApplication}/FluentSecurity.SampleApplication/Controllers/BlogPostController.cs
  19. 0 { → SampleApplication}/FluentSecurity.SampleApplication/Controllers/CrudController.cs
  20. +31 −31 { → SampleApplication}/FluentSecurity.SampleApplication/Controllers/ExampleController.cs
  21. +16 −16 { → SampleApplication}/FluentSecurity.SampleApplication/Controllers/HomeController.cs
  22. +1 −1 { → SampleApplication}/FluentSecurity.SampleApplication/Default.aspx
  23. +21 −21 { → SampleApplication}/FluentSecurity.SampleApplication/Default.aspx.cs
  24. +13 −13 { → SampleApplication}/FluentSecurity.SampleApplication/DefaultPolicyViolationHandler.cs
  25. +161 −162 { → SampleApplication}/FluentSecurity.SampleApplication/FluentSecurity.SampleApplication.csproj
  26. +1 −1 { → SampleApplication}/FluentSecurity.SampleApplication/Global.asax
  27. +47 −47 { → SampleApplication}/FluentSecurity.SampleApplication/Global.asax.cs
  28. +79 −79 { → SampleApplication}/FluentSecurity.SampleApplication/Helpers/HtmlExtensions.cs
  29. +22 −22 { → SampleApplication}/FluentSecurity.SampleApplication/Helpers/MvcExtensions.cs
  30. +32 −32 { → SampleApplication}/FluentSecurity.SampleApplication/Helpers/SecurityHelper.cs
  31. +19 −19 { → SampleApplication}/FluentSecurity.SampleApplication/Helpers/TagBuilderExtensions.cs
  32. +43 −43 { → SampleApplication}/FluentSecurity.SampleApplication/Helpers/UrlExtensions.cs
  33. +6 −6 { → SampleApplication}/FluentSecurity.SampleApplication/IRouteRegistrar.cs
  34. +6 −6 { → SampleApplication}/FluentSecurity.SampleApplication/Models/HomeView.cs
  35. +8 −8 { → SampleApplication}/FluentSecurity.SampleApplication/Models/IUser.cs
  36. +13 −13 { → SampleApplication}/FluentSecurity.SampleApplication/Models/User.cs
  37. +7 −7 { → SampleApplication}/FluentSecurity.SampleApplication/Models/UserRole.cs
  38. +26 −26 { → SampleApplication}/FluentSecurity.SampleApplication/RouteRegistrar.cs
  39. +20 −20 { → SampleApplication}/FluentSecurity.SampleApplication/SessionContext.cs
  40. +140 −140 { → SampleApplication}/FluentSecurity.SampleApplication/Skins/Default/Styles/Main.css
  41. +11 −11 { → SampleApplication}/FluentSecurity.SampleApplication/Views/Example/DenyAnonymousAccess.aspx
  42. +11 −11 { → SampleApplication}/FluentSecurity.SampleApplication/Views/Example/DenyAuthenticatedAccess.aspx
  43. +8 −8 { → SampleApplication}/FluentSecurity.SampleApplication/Views/Example/MissingConfiguration.aspx
  44. +11 −11 { → SampleApplication}/FluentSecurity.SampleApplication/Views/Example/RequireAdministratorRole.aspx
  45. +11 −11 { → SampleApplication}/FluentSecurity.SampleApplication/Views/Example/RequirePublisherRole.aspx
  46. +31 −31 { → SampleApplication}/FluentSecurity.SampleApplication/Views/Home/Index.aspx
  47. +6 −6 { → SampleApplication}/FluentSecurity.SampleApplication/Views/Shared/AccessDenied.aspx
  48. +30 −30 { → SampleApplication}/FluentSecurity.SampleApplication/Views/Shared/Site.Master
  49. +33 −33 { → SampleApplication}/FluentSecurity.SampleApplication/Views/Web.config
  50. +77 −77 { → SampleApplication}/FluentSecurity.SampleApplication/Web.config
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<packages>
- <package id="NUnit" version="2.6.0.12054" />
-</packages>
View
@@ -11,9 +11,9 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FluentSecurity.TestHelper",
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FluentSecurity.TestHelper.Specification", "FluentSecurity.TestHelper.Specification\FluentSecurity.TestHelper.Specification.csproj", "{2C5E08EC-362A-4A9F-BC7E-AA44B4589995}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FluentSecurity.SampleApplication", "FluentSecurity.SampleApplication\FluentSecurity.SampleApplication.csproj", "{C061FCA0-BF28-4803-B55B-F8725DAF3EA1}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FluentSecurity.SampleApplication", "SampleApplication\FluentSecurity.SampleApplication\FluentSecurity.SampleApplication.csproj", "{C061FCA0-BF28-4803-B55B-F8725DAF3EA1}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FluentSecurity.SampleApplication.Tests", "FluentSecurity.SampleApplication.Tests\FluentSecurity.SampleApplication.Tests.csproj", "{56EB339E-9C71-4374-B8DF-5B7AC80DC97A}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FluentSecurity.SampleApplication.Tests", "SampleApplication\FluentSecurity.SampleApplication.Tests\FluentSecurity.SampleApplication.Tests.csproj", "{56EB339E-9C71-4374-B8DF-5B7AC80DC97A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<repositories>
- <repository path="..\FluentSecurity.SampleApplication.Tests\packages.config" />
<repository path="..\FluentSecurity.Specification\packages.config" />
<repository path="..\FluentSecurity.TestHelper.Specification\packages.config" />
+ <repository path="..\SampleApplication\FluentSecurity.SampleApplication.Tests\packages.config" />
</repositories>
@@ -1,125 +1,127 @@
-<?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>9.0.30729</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{56EB339E-9C71-4374-B8DF-5B7AC80DC97A}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>FluentSecurity.SampleApplication.Tests</RootNamespace>
- <AssemblyName>FluentSecurity.SampleApplication.Tests</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <FileUpgradeFlags>
- </FileUpgradeFlags>
- <OldToolsVersion>3.5</OldToolsVersion>
- <UpgradeBackupLocation />
- <TargetFrameworkProfile />
- <PublishUrl>publish\</PublishUrl>
- <Install>true</Install>
- <InstallFrom>Disk</InstallFrom>
- <UpdateEnabled>false</UpdateEnabled>
- <UpdateMode>Foreground</UpdateMode>
- <UpdateInterval>7</UpdateInterval>
- <UpdateIntervalUnits>Days</UpdateIntervalUnits>
- <UpdatePeriodically>false</UpdatePeriodically>
- <UpdateRequired>false</UpdateRequired>
- <MapFileExtensions>true</MapFileExtensions>
- <ApplicationRevision>0</ApplicationRevision>
- <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
- <IsWebBootstrapper>false</IsWebBootstrapper>
- <UseApplicationTrust>false</UseApplicationTrust>
- <BootstrapperEnabled>true</BootstrapperEnabled>
- </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="nunit.framework, Version=2.6.0.12051, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
- <HintPath>..\packages\NUnit.2.6.0.12054\lib\nunit.framework.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Core">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\Dependencies\AspNetMvc\System.Web.Mvc.dll</HintPath>
- </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="..\CommonAssemblyInfo.cs">
- <Link>Properties\CommonAssemblyInfo.cs</Link>
- </Compile>
- <Compile Include="Style3\SecurityConfigurationTests.cs">
- <SubType>Code</SubType>
- </Compile>
- <Compile Include="Style4\SecurityConfigurationTests.cs" />
- </ItemGroup>
- <ItemGroup>
- <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
- <Visible>False</Visible>
- <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
- <Install>false</Install>
- </BootstrapperPackage>
- <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
- <Visible>False</Visible>
- <ProductName>.NET Framework 3.5 SP1</ProductName>
- <Install>true</Install>
- </BootstrapperPackage>
- <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
- <Visible>False</Visible>
- <ProductName>Windows Installer 3.1</ProductName>
- <Install>true</Install>
- </BootstrapperPackage>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\FluentSecurity.SampleApplication\FluentSecurity.SampleApplication.csproj">
- <Project>{C061FCA0-BF28-4803-B55B-F8725DAF3EA1}</Project>
- <Name>FluentSecurity.SampleApplication</Name>
- </ProjectReference>
- <ProjectReference Include="..\FluentSecurity.TestHelper\FluentSecurity.TestHelper.csproj">
- <Project>{F8E43851-6455-48F4-96DE-C3CB3E189123}</Project>
- <Name>FluentSecurity.TestHelper</Name>
- </ProjectReference>
- <ProjectReference Include="..\FluentSecurity\FluentSecurity.csproj">
- <Project>{673F02AC-EEAF-4D65-9B0B-15D534AD7E82}</Project>
- <Name>FluentSecurity</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <None Include="packages.config" />
- </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>
- -->
+<?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>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{56EB339E-9C71-4374-B8DF-5B7AC80DC97A}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>FluentSecurity.SampleApplication.Tests</RootNamespace>
+ <AssemblyName>FluentSecurity.SampleApplication.Tests</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <OldToolsVersion>3.5</OldToolsVersion>
+ <UpgradeBackupLocation />
+ <TargetFrameworkProfile />
+ <PublishUrl>publish\</PublishUrl>
+ <Install>true</Install>
+ <InstallFrom>Disk</InstallFrom>
+ <UpdateEnabled>false</UpdateEnabled>
+ <UpdateMode>Foreground</UpdateMode>
+ <UpdateInterval>7</UpdateInterval>
+ <UpdateIntervalUnits>Days</UpdateIntervalUnits>
+ <UpdatePeriodically>false</UpdatePeriodically>
+ <UpdateRequired>false</UpdateRequired>
+ <MapFileExtensions>true</MapFileExtensions>
+ <ApplicationRevision>0</ApplicationRevision>
+ <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
+ <IsWebBootstrapper>false</IsWebBootstrapper>
+ <UseApplicationTrust>false</UseApplicationTrust>
+ <BootstrapperEnabled>true</BootstrapperEnabled>
+ </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="nunit.framework, Version=2.6.0.12051, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\packages\NUnit.2.6.0.12054\lib\nunit.framework.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\Dependencies\AspNetMvc\System.Web.Mvc.dll</HintPath>
+ </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="..\..\CommonAssemblyInfo.cs">
+ <Link>Properties\CommonAssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="SecurityConfigurationTestsStyle1.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="SecurityConfigurationTestsStyle2.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
+ <Install>false</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5 SP1</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
+ <Visible>False</Visible>
+ <ProductName>Windows Installer 3.1</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\..\FluentSecurity.TestHelper\FluentSecurity.TestHelper.csproj">
+ <Project>{F8E43851-6455-48F4-96DE-C3CB3E189123}</Project>
+ <Name>FluentSecurity.TestHelper</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\..\FluentSecurity\FluentSecurity.csproj">
+ <Project>{673F02AC-EEAF-4D65-9B0B-15D534AD7E82}</Project>
+ <Name>FluentSecurity</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\FluentSecurity.SampleApplication\FluentSecurity.SampleApplication.csproj">
+ <Project>{C061FCA0-BF28-4803-B55B-F8725DAF3EA1}</Project>
+ <Name>FluentSecurity.SampleApplication</Name>
+ </ProjectReference>
+ </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>
Oops, something went wrong.

0 comments on commit 536073b

Please sign in to comment.