Please feel free to contribute! Improvements and/or new scenarios are most welcome.
- ListPosts
- AddPost
- EditPost
# Print all project items | |
Recurse-Project -Action {param($item) "`"$($item.ProjectItem.Name)`" is a $($item.Type)" } | |
# Function to format all documents based on https://gist.github.com/984353 | |
function Format-Document { | |
param( | |
[parameter(ValueFromPipelineByPropertyName = $true)] | |
[string[]]$ProjectName | |
) | |
Process { |
[TestFixture] | |
public class IoCTests | |
{ | |
[Test] | |
public void Can_Resolve_same_instance_when_asked_by_interface_and_class() | |
{ | |
//Arrange | |
ObjectFactory.Initialize(x => | |
{ | |
x.For<FooBar>() |
[Subject("Calculator ")] | |
internal class DummySpec | |
{ | |
class Calculator | |
{ | |
public int add(int a, int b) | |
{ | |
return a+b; | |
} | |
} |
public class LoginViewModel | |
{ | |
public string UserName { get; set; } | |
public string Password { get; set; } | |
public bool RememberMe { get; set; } | |
//TODO: (CV) These should go to ViewBag later | |
public IDictionary<string, IEnumerable<string>> Errors { get; set; } |
var $ = require('jquery'); |
I hereby claim:
To claim this, I am signing this object:
public XElement ExecuteRequest(NameValueCollection arguments) | |
{ | |
var task = ExecuteRequestAsync(arguments); | |
return task.Result; | |
} | |
public async Task<XElement> ExecuteRequestAsync(NameValueCollection arguments) | |
{ | |
arguments = AddStandardArguments(arguments); | |
var argumentString = WriteQueryString(arguments); |
var modules= require('modules'); | |
var jquery = require(modules.jquery); | |
/// Do something with the jquery |