Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added Database Files #6

Merged
merged 2 commits into from

1 participant

@JaySmith
Owner

I fixed the .gitignore to not ignore the sql compact database files and removed the refactoring directory.

@JaySmith JaySmith merged commit 5ae6489 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
BIN  src/GiveCampStarterSite.Mvc3/App_Data/GiveCamp.sdf
Binary file not shown
View
2  src/GiveCampStarterSite.Mvc3/Views/Settings/Index.cshtml
@@ -1,4 +1,4 @@
-@model GiveCampStarterSite.Models.SiteSettingsViewModel
+@model GiveCampStarterSite.ViewModel.SiteSettingsViewModel
@{
ViewBag.Title = "Index";
}
View
10 src/Refactoring/Local.testsettings
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<TestSettings name="Local" id="a9533662-8a9d-4d76-9415-c1b08b0cd963" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
- <Description>These are default test settings for a local test run.</Description>
- <Deployment enabled="false" />
- <Execution>
- <TestTypeSpecific />
- <AgentRule name="Execution Agents">
- </AgentRule>
- </Execution>
-</TestSettings>
View
35 src/Refactoring/Refactoring.Test/Properties/AssemblyInfo.cs
@@ -1,35 +0,0 @@
-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("Refactoring.Test")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Microsoft")]
-[assembly: AssemblyProduct("Refactoring.Test")]
-[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
-[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("d48f9cdb-fff4-434a-ada8-b6e065d2bcc2")]
-
-// 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 Build and Revision Numbers
-// by using the '*' as shown below:
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
View
59 src/Refactoring/Refactoring.Test/Refactoring.Test.csproj
@@ -1,59 +0,0 @@
-<?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>{F0B1FC78-87AD-4855-A64E-7274F274B35C}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Refactoring.Test</RootNamespace>
- <AssemblyName>Refactoring.Test</AssemblyName>
- <TargetFrameworkVersion>v4.0</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.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
- <Reference Include="System" />
- <Reference Include="System.Core">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="UnitTest1.cs" />
- </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>
View
17 src/Refactoring/Refactoring.Test/UnitTest1.cs
@@ -1,17 +0,0 @@
-using System;
-using System.Text;
-using System.Collections.Generic;
-using System.Linq;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace Refactoring.Test
-{
- [TestClass]
- public class UnitTest1
- {
- [TestMethod]
- public void TestMethod1()
- {
- }
- }
-}
View
36 src/Refactoring/Refactoring.sln
@@ -1,36 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Refactoring", "Refactoring\Refactoring.csproj", "{51BA6C1D-A0A8-4426-B6D6-AC9BD47B308A}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Refactoring.Test", "Refactoring.Test\Refactoring.Test.csproj", "{F0B1FC78-87AD-4855-A64E-7274F274B35C}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0B04224D-87FF-440D-83C2-E551471DE2D2}"
- ProjectSection(SolutionItems) = preProject
- Local.testsettings = Local.testsettings
- Refactoring.vsmdi = Refactoring.vsmdi
- TraceAndTestImpact.testsettings = TraceAndTestImpact.testsettings
- EndProjectSection
-EndProject
-Global
- GlobalSection(TestCaseManagementSettings) = postSolution
- CategoryFile = Refactoring.vsmdi
- EndGlobalSection
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {51BA6C1D-A0A8-4426-B6D6-AC9BD47B308A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {51BA6C1D-A0A8-4426-B6D6-AC9BD47B308A}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {51BA6C1D-A0A8-4426-B6D6-AC9BD47B308A}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {51BA6C1D-A0A8-4426-B6D6-AC9BD47B308A}.Release|Any CPU.Build.0 = Release|Any CPU
- {F0B1FC78-87AD-4855-A64E-7274F274B35C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {F0B1FC78-87AD-4855-A64E-7274F274B35C}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {F0B1FC78-87AD-4855-A64E-7274F274B35C}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {F0B1FC78-87AD-4855-A64E-7274F274B35C}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
View
6 src/Refactoring/Refactoring.vsmdi
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<TestLists xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
- <TestList name="Lists of Tests" id="8c43106b-9dc1-4907-a29f-aa66a61bf5b6">
- <RunConfiguration id="a9533662-8a9d-4d76-9415-c1b08b0cd963" name="Local" storage="local.testsettings" type="Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration, Microsoft.VisualStudio.QualityTools.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
- </TestList>
-</TestLists>
View
71 src/Refactoring/Refactoring/Customer.cs
@@ -1,71 +0,0 @@
-namespace Refactoring
-{
- using System.Collections;
- using System.Collections.Generic;
-
- public class Customer
- {
- private List<Rental> Rentals { get; set; }
-
- public string Name { get; set; }
-
- public Customer(string name)
- {
- this.Name = name;
- }
-
- public string Statement()
- {
- double totalAmount = 0;
- int frequentRentalPoints = 0;
- IEnumerable<Rental> rentals = this.Rentals;
-
- string result = "Rental Record for " + Name + "\n";
-
- foreach (var rental in rentals)
- {
- double thisAmount = 0;
-
- switch (rental.Movie.PriceCode)
- {
- case Movie.Regular:
- {
- thisAmount += 2;
- if (rental.DaysRented > 2) thisAmount += (rental.DaysRented - 2 * 1.5);
- break;
- }
-
- case Movie.NewRelease:
- {
- thisAmount += rental.DaysRented * 3;
- break;
- }
-
- case Movie.Children:
- {
- thisAmount += 1.5;
- if (rental.DaysRented > 3) thisAmount += (rental.DaysRented - 3 * 1.5);
- break;
- }
- }
-
- // add frequent rental points
- frequentRentalPoints++;
-
- // add bonus for a two day new releast rental
- if (rental.Movie.PriceCode == Movie.NewRelease && rental.DaysRented > 1) frequentRentalPoints++;
-
- // Show figures for the Rental
- result += "\t" + rental.Movie.Title + "\t" + thisAmount + "\n";
-
- totalAmount += thisAmount;
- }
-
- // Add footer lines
- result += "Amount owed is " + totalAmount + "\n";
- result += "You earned " + frequentRentalPoints + " frequent renter points";
-
- return result;
- }
- }
-}
View
26 src/Refactoring/Refactoring/Movie.cs
@@ -1,26 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Refactoring
-{
- public class Movie
- {
- public const int Children = 2;
-
- public const int Regular = 0;
-
- public const int NewRelease = 1;
-
- public string Title { get; set; }
-
- public int PriceCode { get; set; }
-
- public Movie(string title, int priceCode)
- {
- this.Title = title;
- this.PriceCode = priceCode;
- }
- }
-}
View
36 src/Refactoring/Refactoring/Properties/AssemblyInfo.cs
@@ -1,36 +0,0 @@
-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("Refactoring")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Microsoft")]
-[assembly: AssemblyProduct("Refactoring")]
-[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
-[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("abea08c5-8aa2-455a-9e42-885b07f56db2")]
-
-// 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 Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
View
56 src/Refactoring/Refactoring/Refactoring.csproj
@@ -1,56 +0,0 @@
-<?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>{51BA6C1D-A0A8-4426-B6D6-AC9BD47B308A}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Refactoring</RootNamespace>
- <AssemblyName>Refactoring</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>
- </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="System" />
- <Reference Include="System.Core" />
- <Reference Include="System.Xml.Linq" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Customer.cs" />
- <Compile Include="Movie.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="Rental.cs" />
- </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
15 src/Refactoring/Refactoring/Rental.cs
@@ -1,15 +0,0 @@
-namespace Refactoring
-{
- public class Rental
- {
- public Movie Movie { get; set; }
-
- public int DaysRented { get; set; }
-
- public Rental(Movie movie, int daysRented)
- {
- this.Movie = movie;
- this.DaysRented = daysRented;
- }
- }
-}
View
21 src/Refactoring/TraceAndTestImpact.testsettings
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<TestSettings name="Trace and Test Impact" id="528904b8-6fc1-4d66-8e47-ba6340f2ab72" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
- <Description>These are test settings for Trace and Test Impact.</Description>
- <Execution>
- <TestTypeSpecific />
- <AgentRule name="Execution Agents">
- <DataCollectors>
- <DataCollector uri="datacollector://microsoft/SystemInfo/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TestTools.DataCollection.SystemInfo.SystemInfoDataCollector, Microsoft.VisualStudio.TestTools.DataCollection.SystemInfo, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="System Information">
- </DataCollector>
- <DataCollector uri="datacollector://microsoft/ActionLog/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TestTools.ManualTest.ActionLog.ActionLogPlugin, Microsoft.VisualStudio.TestTools.ManualTest.ActionLog, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="Actions">
- </DataCollector>
- <DataCollector uri="datacollector://microsoft/HttpProxy/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TraceCollector.HttpProxyCollector, Microsoft.VisualStudio.TraceCollector, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="ASP.NET Client Proxy for IntelliTrace and Test Impact">
- </DataCollector>
- <DataCollector uri="datacollector://microsoft/TestImpact/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TraceCollector.TestImpactDataCollector, Microsoft.VisualStudio.TraceCollector, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="Test Impact">
- </DataCollector>
- <DataCollector uri="datacollector://microsoft/TraceDebugger/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TraceCollector.TraceDebuggerDataCollector, Microsoft.VisualStudio.TraceCollector, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="IntelliTrace">
- </DataCollector>
- </DataCollectors>
- </AgentRule>
- </Execution>
-</TestSettings>
Something went wrong with that request. Please try again.