This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Linq; | |
using FubuMVC.Spark.Tokenization; | |
using FubuMVC.Spark.Tokenization.Model; | |
using FubuMVC.Spark.Tokenization.Parsing; | |
using NUnit.Framework; | |
using Rhino.Mocks; | |
namespace FubuMVC.Spark.Tests.Tokenization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RenderContext | |
{ | |
private bool _isPartial; | |
public void SetAsPartial() | |
{ | |
_isPartial = true; | |
} | |
public bool IsPartial() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RenderContext | |
{ | |
private bool _isPartial; | |
public void SetAsPartial() | |
{ | |
_isPartial = true; | |
} | |
public bool IsPartial() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface ISharedItemLocator | |
{ | |
SparkItem LocateItem(string sparkName, SparkItem fromItem, IEnumerable<SparkItem> items); | |
} | |
// REVIEW: This class is too busy. Let's see if we can take parts out of it into classes. | |
public class SharedItemLocator : ISharedItemLocator | |
{ | |
private readonly SharedDirectoryProvider _sharedDirectoryProvider; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using FubuMVC.Core; | |
using FubuMVC.Core.Registration; | |
using FubuMVC.Core.Registration.Nodes; | |
using FubuMVC.Diagnostics.Behaviors; | |
using FubuMVC.Diagnostics.Configuration; | |
using FubuMVC.Diagnostics.Endpoints; | |
using FubuMVC.Diagnostics.Grids; | |
using FubuMVC.Diagnostics.Grids.Columns; | |
using FubuMVC.Diagnostics.Infrastructure; | |
using FubuMVC.Diagnostics.Models; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Invoke() | |
{ | |
using (IContainer nested = _container.GetNestedContainer()) | |
{ | |
nested.Configure(x=> _arguments.EachService((type, value) => x.For(type).Use(value))); | |
var behavior = nested.GetInstance<IActionBehavior>(_behaviorId.ToString()); | |
behavior.Invoke(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using NUnit.Framework; | |
using StructureMap; | |
using StructureMap.Pipeline; | |
[TestFixture] | |
public class ProofOfConcept | |
{ | |
[Test] | |
public void smoke() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using FubuCore; | |
using FubuTestingSupport; | |
using NUnit.Framework; | |
using Rhino.Mocks; | |
using ZG.Core.Entities; | |
using ZG.Mvc.Engines; | |
using ZG.Mvc.Theming.Elements.Model; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestFixture] | |
public class MongoPersistenceTester | |
{ | |
[Test] | |
public void smoke() | |
{ | |
const string connectionString = "mongodb://localhost"; | |
MongoServer server = null; | |
MongoDatabase database = null; | |
Assert.IsTrue(Process.GetProcessesByName("mongod").Length >= 1, "mongod service is not running"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.Web; | |
using ZG.Utilities.Urls; | |
using ZG.Utilities.Web; | |
namespace ZG.Mvc.Engines.Endpoints | |
{ | |
public class EngineHttpContextBuilder : IEngineHttpContextBuilder | |
{ |