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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "build", | |
"command": "dotnet", | |
"type": "process", | |
"args": [ | |
"build", | |
"${workspaceRoot}/src/CSharpWithVSCode.ConsoleApp/CSharpWithVSCode.ConsoleApp.csproj" |
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 Prism.Mef; | |
using System.ComponentModel.Composition.Hosting; | |
using System.Windows; | |
namespace WireFrame.Shell | |
{ | |
class Bootstrapper : MefBootstrapper | |
{ | |
protected override DependencyObject CreateShell() | |
{ |
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.Windows; | |
namespace TaskList.Shell | |
{ | |
public partial class App : Application | |
{ | |
protected override void OnStartup(StartupEventArgs e) | |
{ | |
base.OnStartup(e); | |
var bootstrapper = new Bootstrapper(); |
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
<Window x:Class="WireFrame.Shell.Shell" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:local="clr-namespace:WireFrame.Shell" | |
mc:Ignorable="d" | |
Title="Shell" Height="450" Width="600"> | |
<Window.Resources> | |
<Thickness x:Key="BtnMargin">5,5,5,0</Thickness> |
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
pragma solidity ^0.4.18; | |
import "./ConvertLib.sol"; | |
// This is just a simple example of a coin-like contract. | |
// It is not standards compatible and cannot be expected to talk to other | |
// coin/token contracts. If you want to create a standards-compliant | |
// token, see: https://github.com/ConsenSys/Tokens. Cheers! | |
contract MetaCoin { |
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
advanceTimeAndBlock = async (time) => { | |
await advanceTime(time); | |
await advanceBlock(); | |
return Promise.resolve(web3.eth.getBlock('latest')); | |
} | |
advanceTime = (time) => { | |
return new Promise((resolve, reject) => { | |
web3.currentProvider.sendAsync({ |
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
const helper = require("./helpers/truffleTestHelper"); | |
describe("Testing Helper Functions", () => { | |
it("should advance the blockchain forward a block", async () =>{ | |
const originalBlockHash = web3.eth.getBlock('latest').hash; | |
let newBlockHash = web3.eth.getBlock('latest').hash; | |
newBlockHash = await helper.advanceBlock(); | |
assert.notEqual(originalBlockHash, newBlockHash); |
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
<Project> | |
<Target Name="VSTestIfTestProject"> | |
<CallTarget Targets="VSTest" Condition="'$(IsTestProject)' == 'true'" /> | |
</Target> | |
</Project> |
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
<Project> | |
<Target Name="VSTest"> | |
<MSBuild Projects="@(ProjectReference)" Targets="VSTestIfTestProject" /> | |
</Target> | |
</Project> |
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 Dapper; | |
using FluentAssertions; | |
using Npgsql; | |
using System; | |
using Xunit; | |
namespace SampleDatabase.Test | |
{ | |
[TestCaseOrderer("TestingEntityFramework.MigrationTestOrderer", "TestingEntityFramework")] | |
public class MigrationsTest : IClassFixture<MigratingDatabaseFixture> |
OlderNewer