Permalink
Browse files

Initial Commit

  • Loading branch information...
1 parent 0bbecc6 commit c0a095f304836743488b0552898e84133651711f Magnus Mårtensson committed Nov 28, 2012
Showing 324 changed files with 176,259 additions and 1 deletion.
View
@@ -79,7 +79,7 @@ publish
*.Publish.xml
# NuGet Packages Directory
-packages
+#packages
# Windows Azure Build Output
csx
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+ Note: Add entries to the App.config file for configuration settings
+ that apply only to the Test project.
+-->
+<configuration>
+ <appSettings>
+
+ </appSettings>
+
+ <connectionStrings>
+
+ </connectionStrings>
+</configuration>
@@ -0,0 +1,54 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Web.Mvc;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using TeamCityDemoWebApplication;
+using TeamCityDemoWebApplication.Controllers;
+
+namespace TeamCityDemoWebApplication.Tests.Controllers
+{
+ [TestClass]
+ public class HomeControllerTest
+ {
+ [TestMethod]
+ public void Index()
+ {
+ // Arrange
+ HomeController controller = new HomeController();
+
+ // Act
+ ViewResult result = controller.Index() as ViewResult;
+
+ // Assert
+ Assert.AreEqual("Modify this template to jump-start your ASP.NET MVC application.", result.ViewBag.Message);
+ }
+
+ [TestMethod]
+ public void About()
+ {
+ // Arrange
+ HomeController controller = new HomeController();
+
+ // Act
+ ViewResult result = controller.About() as ViewResult;
+
+ // Assert
+ Assert.IsNotNull(result);
+ }
+
+ [TestMethod]
+ public void Contact()
+ {
+ // Arrange
+ HomeController controller = new HomeController();
+
+ // Act
+ ViewResult result = controller.Contact() as ViewResult;
+
+ // Assert
+ Assert.IsNotNull(result);
+ }
+ }
+}
@@ -0,0 +1,35 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("TeamCityDemoWebApplication.Tests")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("TeamCityDemoWebApplication.Tests")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("a5807173-c114-425d-ba2c-8a1d916dd8a6")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,119 @@
+<?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>
+ </ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{CC520AF4-8E12-4FCD-A306-D17A23900969}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>TeamCityDemoWebApplication.Tests</RootNamespace>
+ <AssemblyName>TeamCityDemoWebApplication.Tests</AssemblyName>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ </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="Microsoft.CSharp" />
+ <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
+ <Reference Include="System" />
+ <Reference Include="System.ComponentModel.DataAnnotations" />
+ <Reference Include="System.Configuration" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Web" />
+ <Reference Include="System.Web.ApplicationServices" />
+ <Reference Include="System.Web.Extensions" />
+ <Reference Include="System.Web.Abstractions" />
+ <Reference Include="System.Web.Routing" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <Private>True</Private>
+ <HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
+ </Reference>
+ <Reference Include="Newtonsoft.Json">
+ <HintPath>..\packages\Newtonsoft.Json.4.5.6\lib\net40\Newtonsoft.Json.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Net.Http">
+ </Reference>
+ <Reference Include="System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <HintPath>..\packages\Microsoft.AspNet.WebApi.Client.4.0.20710.0\lib\net40\System.Net.Http.Formatting.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Net.Http.WebRequest">
+ </Reference>
+ <Reference Include="System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <Private>True</Private>
+ <HintPath>..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.Helpers.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <HintPath>..\packages\Microsoft.AspNet.WebApi.Core.4.0.20710.0\lib\net40\System.Web.Http.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.Http.WebHost, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <HintPath>..\packages\Microsoft.AspNet.WebApi.WebHost.4.0.20710.0\lib\net40\System.Web.Http.WebHost.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <Private>True</Private>
+ <HintPath>..\packages\Microsoft.AspNet.Mvc.4.0.20710.0\lib\net40\System.Web.Mvc.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <Private>True</Private>
+ <HintPath>..\packages\Microsoft.AspNet.Razor.2.0.20710.0\lib\net40\System.Web.Razor.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <Private>True</Private>
+ <HintPath>..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.WebPages.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.WebPages.Deployment, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <Private>True</Private>
+ <HintPath>..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.WebPages.Deployment.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <Private>True</Private>
+ <HintPath>..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.WebPages.Razor.dll</HintPath>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Controllers\HomeControllerTest.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="App.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\TeamCityDemoWebApplication\TeamCityDemoWebApplication.csproj">
+ <Project>{505B6800-4020-41AC-BCC0-F18844ED73E2}</Project>
+ <Name>TeamCityDemoWebApplication</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\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>
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="Microsoft.AspNet.Mvc" version="4.0.20710.0" targetFramework="net45" />
+ <package id="Microsoft.AspNet.Razor" version="2.0.20710.0" targetFramework="net45" />
+ <package id="Microsoft.AspNet.WebApi.Client" version="4.0.20710.0" targetFramework="net45" />
+ <package id="Microsoft.AspNet.WebApi.Core" version="4.0.20710.0" targetFramework="net45" />
+ <package id="Microsoft.AspNet.WebApi.WebHost" version="4.0.20710.0" targetFramework="net45" />
+ <package id="Microsoft.AspNet.WebPages" version="2.0.20710.0" targetFramework="net45" />
+ <package id="Microsoft.Net.Http" version="2.0.20710.0" targetFramework="net45" />
+ <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
+ <package id="Newtonsoft.Json" version="4.5.6" targetFramework="net45" />
+</packages>
@@ -0,0 +1,26 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TeamCityDemoWebApplication", "TeamCityDemoWebApplication\TeamCityDemoWebApplication.csproj", "{505B6800-4020-41AC-BCC0-F18844ED73E2}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TeamCityDemoWebApplication.Tests", "TeamCityDemoWebApplication.Tests\TeamCityDemoWebApplication.Tests.csproj", "{CC520AF4-8E12-4FCD-A306-D17A23900969}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {505B6800-4020-41AC-BCC0-F18844ED73E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {505B6800-4020-41AC-BCC0-F18844ED73E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {505B6800-4020-41AC-BCC0-F18844ED73E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {505B6800-4020-41AC-BCC0-F18844ED73E2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {CC520AF4-8E12-4FCD-A306-D17A23900969}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {CC520AF4-8E12-4FCD-A306-D17A23900969}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {CC520AF4-8E12-4FCD-A306-D17A23900969}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {CC520AF4-8E12-4FCD-A306-D17A23900969}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
@@ -0,0 +1,32 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using Microsoft.Web.WebPages.OAuth;
+using TeamCityDemoWebApplication.Models;
+
+namespace TeamCityDemoWebApplication
+{
+ public static class AuthConfig
+ {
+ public static void RegisterAuth()
+ {
+ // To let users of this site log in using their accounts from other sites such as Microsoft, Facebook, and Twitter,
+ // you must update this site. For more information visit http://go.microsoft.com/fwlink/?LinkID=252166
+
+ //OAuthWebSecurity.RegisterMicrosoftClient(
+ // clientId: "",
+ // clientSecret: "");
+
+ //OAuthWebSecurity.RegisterTwitterClient(
+ // consumerKey: "",
+ // consumerSecret: "");
+
+ //OAuthWebSecurity.RegisterFacebookClient(
+ // appId: "",
+ // appSecret: "");
+
+ //OAuthWebSecurity.RegisterGoogleClient();
+ }
+ }
+}
@@ -0,0 +1,43 @@
+using System.Web;
+using System.Web.Optimization;
+
+namespace TeamCityDemoWebApplication
+{
+ public class BundleConfig
+ {
+ // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
+ public static void RegisterBundles(BundleCollection bundles)
+ {
+ bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
+ "~/Scripts/jquery-{version}.js"));
+
+ bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
+ "~/Scripts/jquery-ui-{version}.js"));
+
+ bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
+ "~/Scripts/jquery.unobtrusive*",
+ "~/Scripts/jquery.validate*"));
+
+ // Use the development version of Modernizr to develop with and learn from. Then, when you're
+ // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
+ bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
+ "~/Scripts/modernizr-*"));
+
+ bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));
+
+ bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
+ "~/Content/themes/base/jquery.ui.core.css",
+ "~/Content/themes/base/jquery.ui.resizable.css",
+ "~/Content/themes/base/jquery.ui.selectable.css",
+ "~/Content/themes/base/jquery.ui.accordion.css",
+ "~/Content/themes/base/jquery.ui.autocomplete.css",
+ "~/Content/themes/base/jquery.ui.button.css",
+ "~/Content/themes/base/jquery.ui.dialog.css",
+ "~/Content/themes/base/jquery.ui.slider.css",
+ "~/Content/themes/base/jquery.ui.tabs.css",
+ "~/Content/themes/base/jquery.ui.datepicker.css",
+ "~/Content/themes/base/jquery.ui.progressbar.css",
+ "~/Content/themes/base/jquery.ui.theme.css"));
+ }
+ }
+}
@@ -0,0 +1,13 @@
+using System.Web;
+using System.Web.Mvc;
+
+namespace TeamCityDemoWebApplication
+{
+ public class FilterConfig
+ {
+ public static void RegisterGlobalFilters(GlobalFilterCollection filters)
+ {
+ filters.Add(new HandleErrorAttribute());
+ }
+ }
+}
@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.Mvc;
+using System.Web.Routing;
+
+namespace TeamCityDemoWebApplication
+{
+ public class RouteConfig
+ {
+ public static void RegisterRoutes(RouteCollection routes)
+ {
+ routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
+
+ routes.MapRoute(
+ name: "Default",
+ url: "{controller}/{action}/{id}",
+ defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
+ );
+ }
+ }
+}
Oops, something went wrong.

0 comments on commit c0a095f

Please sign in to comment.