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.Diagnostics; | |
using xxx.App_Start; | |
using Glass.Mapper.Sc; | |
using Xunit; | |
namespace xxx.UnitTests | |
{ | |
public class GlassContextTests | |
{ |
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 GlassLazy<T> : Lazy<T> | |
{ | |
public GlassLazy(Func<object> lazy) : base(() => (T)lazy()) | |
{ | |
} | |
public override string ToString() | |
{ | |
return Value.ToString(); | |
} |
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 Glass.Mapper.Sc; | |
using Glass.Mapper.Sc.Pipelines.Response; | |
using XXX.Common.IoC; | |
using XXX.Core.Sc.Abstractions.Context; | |
using Sitecore.Mvc.Pipelines.Response.GetModel; | |
namespace XXX.Web | |
{ | |
public class LanguageAgnosticGetModelFromView : GetModelFromView | |
{ |
OlderNewer