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 CSharpClassRewriter : CSharpSyntaxRewriter { | |
private readonly string _sourceCode; | |
private readonly Attribute _attributeToAdd; | |
public CSharpClassRewriter( | |
string sourceCode, | |
Attribute attributeToAdd = null) { | |
if (string.IsNullOrEmpty(sourceCode)) { | |
throw new ArgumentNullException(nameof(sourceCode)); |
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
namespace ConsoleApplication.Validators { | |
public interface IIsinValidator { | |
bool IsChecksumCorrect(string dataWithChecksum, bool checkLastDigit); | |
} | |
public class IsinValidator : IIsinValidator { | |
public bool IsChecksumCorrect(string dataWithChecksum, bool checkLastDigit) { | |
try { |
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
#load "Scripts\load-references-debug.fsx" | |
open Microsoft.FSharp.Reflection | |
open Newtonsoft.Json | |
open Newtonsoft.Json.Linq | |
open System | |
// ***************** Domain ***************** | |
type SingleCaseUnion = SingleCaseUnion of int |