I hereby claim:
- I am pavsaund on github.
- I am pavsaund (https://keybase.io/pavsaund) on keybase.
- I have a public key ASBeNFUc68jSKjyUW6BYZUed8Qqq7QKmFIVguSKWofrYBwo
To claim this, I am signing this object:
TestCase("AjaxTest", sinon.testCase({ | |
testDefferredJSONResponse: function () { | |
var target = this; | |
this.server.respondWith( | |
"POST", /post.*/, | |
[200, { "Content-Type": "application/json" }, | |
'{ "Exception":"", "Success":true, "ValidationResult":"" }']); | |
$.post( |
libs/jquery-1.7.2.min.js | |
libs/kendo.web.min.js | |
libs/kendo.culture.nb-NO.min.js |
Dependencies: | |
- Scripts/globalDependency.js | |
Harnesses: | |
- Harness: | |
Framework : Jasmine | |
Name : Jasmine Specs | |
SystemsSearchPath : Jasmine/Scripts/{system}.js | |
DescriptionsSearchPath : Jasmine/Specs/for_{system}/{description}.js | |
Dependencies: |
//Jasmine 1.1.0 | |
//Sinon 1.3.4 | |
describe("when testing a certain part of my system", sinon.test(function () { | |
//Arrange | |
var system = methodToGetSystem; | |
var stubbedMethod = this.stub(system, "methodName"); | |
//Act |
ko.bindingHandlers.yourBindingName = { | |
init: function(element, valueAccessor, allBindingsAccessor, viewModel) { | |
var elementId = $(element).attr("id"); | |
//Generate custom random id, if element has none | |
$("<label/>").attr("for", elementId) | |
// insert label into dom, | |
// hide element | |
// attach click handler to label | |
}, |
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<!--DEV TOOLS--> | |
<package id="visualstudio2013ultimate" | |
installArguments="/Features:'SQL WebTools' /ProductKey:AB1CD-EF2GH-IJ3KL-MN4OP-QR5ST" /> | |
<package id="git" /> | |
<package id="nodejs"/> | |
<package id="ruby"/> | |
<package id="dotnet4.5"/> | |
<package id="scriptcs"/> |
// This function builds the order document, validates it, stores it in the DB | |
// before placing an order in the ERP system. Then it stores a normalized order | |
// to the customers order history page. | |
public Order PlaceOrder() { ... } |
I hereby claim:
To claim this, I am signing this object:
public class ShoppingCartWithCustomerTraceLogging : ShoppingCart | |
{ | |
public override void AddCartItem(CartItem item) | |
{ | |
base.AddCartItem(item); | |
Track(CustomerAction.CartItemAddedToCart); | |
} | |
void Track(Action action) | |
{ |
public class ShoppingCartWithCustomerTraceLogging : ShoppingCart | |
{ | |
/// <summary> | |
/// Preferred way to add item to a customers shopping cart | |
/// Will add the needed extra logging required. | |
/// </summary> | |
/// <param name="item"> A CartItem that contains the qty, sku, and item price and item total price</param> | |
public override void AddCartItem(CartItem item) | |
{ | |
base.AddCartItem(item); |