Skip to content

Instantly share code, notes, and snippets.

Avatar

Adrian Bontea adrianbontea

View GitHub Profile
View StubAccountRepository.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using RoboBank.Account.Application.Ports;
using System.Text;
namespace RoboBank.Account.Application.Adapters.NetStandard
{
public class StubAccountRepository : IAccountRepository
View Program.cs
using ClassLibraryNetStandard;
using Newtonsoft.Json;
using System;
namespace ConsoleAppNetFramework
{
class Program
{
static void Main(string[] args)
{
View ConsoleAppNetCore.csproj
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Include="**\*.cs" />
<EmbeddedResource Include="**\*.resx" />
</ItemGroup>
<ItemGroup>
View Test.cs
namespace ClassLibraryNetStandard
{
public class Test
{
public string SomeProperty { get; set; }
public string SomeOtherProperty { get; set; }
}
}