25 changed files with 293 additions and 9 deletions
@ -0,0 +1,26 @@ |
|||||||
|
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||||
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||||
|
|
||||||
|
using System; |
||||||
|
using System.Reflection; |
||||||
|
using ICSharpCode.AspNet.Mvc; |
||||||
|
|
||||||
|
namespace AspNet.Mvc.Tests.Helpers |
||||||
|
{ |
||||||
|
public class TestableMvcTextTemplateHost : MvcTextTemplateHost |
||||||
|
{ |
||||||
|
public TestableMvcTextTemplateHost() |
||||||
|
: base(null, null, null) |
||||||
|
{ |
||||||
|
} |
||||||
|
|
||||||
|
public Assembly AssemblyToReturnFromLoadAssemblyFrom; |
||||||
|
public string FileNamePassedToLoadAssemblyFrom; |
||||||
|
|
||||||
|
protected override Assembly LoadAssemblyFrom(string fileName) |
||||||
|
{ |
||||||
|
FileNamePassedToLoadAssemblyFrom = fileName; |
||||||
|
return AssemblyToReturnFromLoadAssemblyFrom; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,17 @@ |
|||||||
|
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||||
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||||
|
|
||||||
|
using System; |
||||||
|
using ICSharpCode.SharpDevelop.Dom; |
||||||
|
|
||||||
|
namespace AspNet.Mvc.Tests.Helpers |
||||||
|
{ |
||||||
|
public class TestableProjectContent : DefaultProjectContent |
||||||
|
{ |
||||||
|
public TestableProject TestableProject = TestableProject.CreateProject(); |
||||||
|
|
||||||
|
public override object Project { |
||||||
|
get { return TestableProject; } |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue