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 ValueObjectHolder: DomainEntity | |
{ | |
protected ValueObjectHolder() | |
{ | |
Values = new List<ValueObject>(); | |
} | |
public ValueObjectHolder(string key):this() | |
{ | |
Key = key; |
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 StructureMap; | |
using VendorYellowPages.Core.Startable; | |
using VendorYellowPages.Infrastructure.NHibernate; | |
namespace VendorYellowPages.Web.Infrastructure | |
{ | |
public static class StructureMapExtensions | |
{ | |
public static void StartStartables(this IContainer container) |
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 GridAction | |
{ | |
public GridModel Execute(GridModel input) | |
{ | |
return input; | |
} | |
public jqGridModel DataQuery(GridRequest request) | |
{ | |
var invoices = new[] |
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
<%@ Page Language="C#" AutoEventWireup="true" Inherits="VendorYellowPages.Web.Actions.Grid.Grid" | |
MasterPageFile="~/Shared/Site.Master"%> | |
<asp:Content ContentPlaceHolderID="_head" runat="server"> | |
<%=this.JavaScript("jqGrid/js/grid.locale-en.js")%> | |
<%=this.JavaScript("jqGrid/js/jquery.jqGrid.min.js")%> | |
<script type="text/javascript"> | |
jQuery(document).ready(function() { | |
jQuery("#list").jqGrid({ |
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 GetManufacturerAction | |
{ | |
public VendorModel<Manufacturer> Query(GetVendorRequest<Manufacturer> request) | |
{ | |
return new VendorModel<Manufacturer>(){ Vendor = request.Vendor }; | |
} | |
} |
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
<html> | |
<head> | |
<script type="text/javascript" src="lib/prototype/prototype.js"></script> | |
<script type="text/javascript" src="lib/showdown/showdown.js"></script> | |
<script type="text/javascript" src="lib/liquid/liquid.js"></script> | |
</head> | |
<body> | |
</body> | |
<script type="text/html" id="myOtherTemplate"> |
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 static class ValueObjectRegistry | |
{ | |
static ValueObjectRegistry() | |
{ | |
_valueObjectCache.OnMissing = (name) => | |
{ | |
return new ValueObjectHolder(name); | |
}; | |
} |
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 ViewFieldScoresAction | |
{ | |
private readonly IFieldScoreTasks _fieldScoreTasks; | |
public ViewFieldScoresAction(IFieldScoreTasks fieldScoreTasks) | |
{ | |
_fieldScoreTasks = fieldScoreTasks; | |
} | |
public FubuContinuation Get(FieldScoresInputViewModel inModel) |
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 MobileViewBuilder : StructureMapWebFormsControlBuilder | |
{ | |
private readonly HttpRequestWrapper _requestWrapper; | |
public MobileViewBuilder(IContainer container, HttpRequestWrapper requestWrapper) | |
: base(container) | |
{ | |
_requestWrapper = requestWrapper; | |
} |
OlderNewer