Skip to content

Instantly share code, notes, and snippets.

using System;
using System.IO;
using System.Web;
using System.Web.Routing;
using FubuMVC.Core.Registration.Nodes;
namespace Spark.Web.FubuMVC.ViewCreation
{
public interface ISparkViewRenderer<T>
{
using System.Collections.Generic;
using System.Linq;
using ZG.Core.Entities;
using ZG.Core.Services;
using ZG.Mvc.Engines;
namespace ZG.Mvc.Theming.Model
{
public interface IThemeComposition
{
// Theme
public interface ITheme
{
void AddElement(IThemeElement element);
IEnumerable<IThemeElement> Elements { get; }
}
public class Theme : ITheme
{
private readonly IList<IThemeElement> _elements;
@emiaj
emiaj / PersonTester.cs
Created March 15, 2011 21:41
Showcase different NUnit behavior for the same scenario (tested using 2.4.6 and 2.5.9.10348)
using System.Collections;
using System.Collections.Generic;
using NUnit.Framework;
namespace ClassLibrary1
{
public class PersonTester
{
[Test]
public void are_equal()
public class SparkLoader
{
private readonly ISparkViewFactory _sparkViewFactory;
private readonly ActionContext _actionContext;
private readonly IServiceLocator _serviceLocator;
private static readonly IDictionary<BuildDescriptorParams, ISparkViewEntry> _cache;
static SparkLoader()
{
_cache = new Dictionary<BuildDescriptorParams, ISparkViewEntry>();
public class SubViewFolderTester
{
[Test]
public void create_subviewfolder()
{
var settings = new SparkSettings();
var folderSettings = new Dictionary<string, string>
{
{"virtualBaseDir", "~/Masters"},
{"subfolder", "layouts"}
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web.Hosting;
using FubuCore.Util;
namespace FubuMVC.Spark
{
public interface ISparkScanner
{
using System.Collections.Generic;
using System.IO;
using System.Linq;
using FubuCore;
namespace FubuMVC.Spark
{
public interface ISparkScanner
{
IEnumerable<string> Scan();
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Bottles;
using FubuCore;
using FubuCore.Util;
namespace FubuMVC.Spark.Scanning
{
using System.Collections.Generic;
using System.Linq;
using FubuCore;
using FubuMVC.Core.Registration;
using FubuMVC.Spark.Tokenization.Model;
namespace FubuMVC.Spark.Tokenization
{
public interface IViewTokenizer
{