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 System.Linq.Expressions; | |
namespace Moq | |
{ | |
public static class MockingUtilities | |
{ | |
public static Mock<T> AutoMockFluentInterface<T>(this Mock<T> interfaceMock) where T:class | |
{ |
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
// This file was initially generated by Windows Terminal 1.2.2381.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", |
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
import React, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
export const withProbabilityInputValidation = (WrappedComponent) => { | |
class ProbabilityInputValidation extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
isValid: true | |
}; |
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
import React, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
export const withProbabilityInputValidation = (WrappedComponent) => { | |
class ProbabilityInputValidation extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
isValid: true | |
}; |
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
import React from 'react'; | |
import { fireEvent, render, screen } from '@testing-library/react'; | |
import TextField from '@material-ui/core/TextField'; | |
describe("TextField onChange demo", () => { | |
it.each` | |
initialValue | changeValue | |
${"test"} | ${"changed"} | |
${"test"} | ${"test"} | |
`("given a text field with initial value '$initialValue' when changed to '$changeValue' then the onChange handler should be called", ({ initialValue, changeValue }) => { |
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.Net; | |
using System.Net.Http; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using FluentAssertions; | |
using HttpClientTest.Class; | |
using Moq; | |
using Xunit; | |
namespace HttpClientTest.Tests |
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.Net; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
namespace HttpClientTest.Class | |
{ | |
public interface ICallTheInternet | |
{ | |
public Task<bool> GetWithNamedClient(string clientName, string url, HttpStatusCode expectedStatusCode); |
OlderNewer