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 System.Linq; | |
using System.Xml.Linq; | |
namespace MbUnitTestResultNormalizer | |
{ | |
public class TestResultNormalizer | |
{ |
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
msWWA.execUnsafeLocalFunction(function () { | |
self[i].innerHTML = value; | |
}); |
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 UnitOfWork : IUnitOfWork, IDisposable | |
{ | |
private readonly MyContext context; | |
private bool isRolledback; | |
private readonly TransactionScope transactionScope; | |
public UnitOfWork(MyContext context) | |
{ | |
this.context = context; | |
isRolledback = false; |
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.Linq; | |
using Autofac; | |
using Autofac.Core; | |
using NLog; | |
using log4net; | |
using LogManager = NLog.LogManager; | |
namespace AutofacIdea | |
{ |
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 xmlns="http://www.w3.org/1999/xhtml"> | |
<head><title></title> | |
<script src="Scripts/Form.js" type="text/javascript"></script> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"> </script> | |
</head> | |
<body> | |
<form method="post" action=""> | |
<p>Why did you decided to submit this form?</p> | |
<fieldset><legend>Reasons</legend> | |
<ul> |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head><title>Untitled Page</title> | |
<link rel="stylesheet" type="text/css" href="http://developer.yahoo.com/yui/3/assets/yui.css" /> | |
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.1.1/build/cssfonts/fonts-min.css" /> | |
<script src="http://yui.yahooapis.com/3.1.1/build/yui/yui-min.js" type="text/javascript"></script> | |
<script src="Scripts/jack.js" type="text/javascript"></script> | |
<script src="Scripts/Form.js" type="text/javascript"></script> | |
<script src="Scripts/UnitTests.js" type="text/javascript"></script> | |
</head> |
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
/// <reference path="jack.js" /> | |
JST = JSUnitTesting; | |
YUI().use("node", "console", "test", function (Y) { | |
var validation_tests = new Y.Test.Case({ | |
name: "Validation tests", | |
"validation should fail when both custom and |
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
JSUnitTesting = { | |
getPredefinedReasons: function () { | |
var values = []; | |
$("input[type='checkbox']").each(function () { | |
values.push($(this).is(":checked")); | |
}); | |
return values; | |
}, | |
getCustomReason: function () { | |
return $("input[type='text']:first").val(); |
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
Hello | |
World | |
Bye | |
World |
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 ExtensibleDynamicObject : DynamicObject | |
{ | |
private readonly Dictionary<string, object> data; | |
public ExtensibleDynamicObject() | |
{ | |
data = new Dictionary<string, object>(); | |
} | |
public override bool TrySetMember(SetMemberBinder binder, object value) |
OlderNewer