Skip to content

Commit

Permalink
fix application path for MvcIntegrationTest
Browse files Browse the repository at this point in the history
  • Loading branch information
gasparnagy committed Apr 23, 2010
1 parent dd1c26c commit c4d0ba6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Expand Up @@ -5,6 +5,7 @@
</configSections>

<appSettings>
<add key="AppFolder" value="C:\git\SpecFlow-Examples\ASP.NET-MVC\BookShop-mvc2\Bookshop" />
<add key="AppUrl" value="http://localhost:51461/"/>
</appSettings>

Expand Down
Expand Up @@ -36,6 +36,7 @@
<HintPath>..\lib\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
Expand Down
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Text;
Expand All @@ -18,9 +19,7 @@ namespace BookShop.AcceptanceTests.MvcIntegration.StepDefinitions
[Binding]
public class SearchSteps
{
private static readonly string mvcAppPath =
Path.GetFullPath(@"C:\git\SpecFlow-Examples\ASP.NET-MVC\BookShop-mvc2\Bookshop");
//AppDomain.CurrentDomain.BaseDirectory + "\\..\\..\\..\\BookShop");
private static readonly string mvcAppPath = ConfigurationManager.AppSettings["AppFolder"];
private readonly AppHost appHost = new AppHost(mvcAppPath);

private HostedViewResult<List<Book>> actionResult;
Expand Down

0 comments on commit c4d0ba6

Please sign in to comment.