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
[Fact] | |
public async void GetZenmoneyCode() | |
{ | |
var url = "https://api.zenmoney.ru/"; | |
var clientId = _secrets.ZenMoneyClientId; | |
var clientSecret = _secrets.ZenMoneyClientSecret; | |
var redirectUri = "http://localhost/login"; | |
var restClient = new RestClient(url); |
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
Get-ChildItem -Filter System.*.dll -Recurse | | |
ForEach-Object { | |
try { | |
$_ | Add-Member NoteProperty FileVersion ($_.VersionInfo.FileVersion) | |
$_ | Add-Member NoteProperty AssemblyVersion ( | |
[Reflection.AssemblyName]::GetAssemblyName($_.FullName).Version | |
) | |
} catch {} | |
$_ | |
} | |
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
#! /bin/bash | |
# Assumes that you tag versions with the version number (e.g., "1.1") | |
# and then the build number is that plus the number of commits since | |
# the tag (e.g., "1.1.17") | |
DESCRIBE=`git describe --tags --always` | |
# increment the build number (ie 115 to 116) | |
VERSION=`echo $DESCRIBE | awk '{split($0,a,"-"); print a[1]}'` |
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
class User: Aggregate{ | |
public string Name {get; private set;} | |
public User(string id, string name):base(id) | |
{ | |
Emit(new UserCreated(id, name); | |
} | |
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.Threading.Tasks; | |
using Akka.Actor; | |
using Xunit; | |
namespace GridDomain.Tests.Acceptance.GridConsole { | |
public class AssociationErrorTest | |
{ | |
public class EchoActor : ReceiveActor | |
{ |
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
public class HyperionTest2 : TestKit | |
{ | |
public HyperionTest2() :base(@" | |
akka | |
{ | |
actor { | |
serialize-creators = on | |
serializers {hyp = ""Akka.Serialization.HyperionSerializer, Akka.Serialization.Hyperion""} | |
serialization-bindings {""System.Object"" = hyp} | |
} |