Skip to content

Instantly share code, notes, and snippets.

View chester89's full-sized avatar

Gleb Chermennov chester89

View GitHub Profile
@chester89
chester89 / Describing issue 124
Created September 11, 2012 17:21
Fluent NHibernate automapping issue
public class Customer
{
public int Id { get; set; }
public ICollection<Order> Orders { get; set; }
}
public class BigBoss
{
public string FullName { get; set; }
public ICollection<OrderInfo> Orders { get; set; }
@chester89
chester89 / example.html
Created June 30, 2012 16:48 — forked from joelnet/example.html
Unobtrusive Knockout support library for jQuery
Choose a ticket class: <select id="tickets"></select>
<p id="ticketOutput"></p>
<script id="ticketTemplate" type="text/x-jquery-tmpl">
{{if chosenTicket}}
You have chosen <b>${ chosenTicket().name }</b>
($${ chosenTicket().price })
<button data-bind="click: resetTicket">Clear</button>
{{/if}}
[Test]
public void should_register_type_as_single_implementation()
{
Scan(ac =>
{
ac.AssemblyContainingType<ISingleInterface>();
ac.SingleImplementationsOfInterface();
});
shouldHaveFamily<ISingleInterface>();