This file contains hidden or 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
var Col = require('react-bootstrap/lib/Col') | |
var PageHeader = require('react-bootstrap/lib/PageHeader') | |
var React = require('react') | |
var Row = require('react-bootstrap/lib/Row') | |
var {connect} = require('react-redux') | |
var {reduxForm} = require('redux-form') | |
var DateInput = require('./DateInput') | |
var FormField = require('./FormField') | |
var LoadingButton = require('./LoadingButton') |
This file contains hidden or 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.Net.Http; | |
using System.Threading.Tasks; | |
using Xunit; | |
public class Fixture | |
{ | |
[Fact] | |
public void Should_FactMethodName() |
This file contains hidden or 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
[Fact] | |
public Task Fetch_WithBlogSelectedAndOneResult_DisplaysOnePost() | |
{ | |
// arrange | |
var result = new[] { new Post() }; | |
metaWeblogService | |
.GetRecentPostsAsync(Arg.Any<BlogSetting>(), Arg.Any<int>()) | |
.Returns(()=>Task.Factory.FromResult(new []{new Post()}); |
This file contains hidden or 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 Task<User> GetUser() | |
{ | |
return NGitHub(_client.Users.GetAuthenticatedUserAsync) | |
} | |
public Task<T> NGitHub<T>(Func<Action<T>, Action<Exception>, GitHubRequestAsyncHandle> call) | |
{ | |
var _client = new GitHubClient | |
{ | |
Authenticator = new HttpBasicAuthenticator("user", "pass") |
This file contains hidden or 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 ExampleTest | |
{ | |
private readonly List<KeyPress> outputs; | |
private readonly KeyProvider provider; | |
private readonly Subject<InterceptKeyEventArgs> subject; | |
private IProcessLookup processLookup; | |
public ExampleTest() | |
{ | |
outputs = new List<KeyPress>(); |