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
| using System; | |
| namespace Summation | |
| { | |
| class MainClass | |
| { | |
| public static void Main (string[] args) | |
| { | |
| var frontend = new Frontend(); | |
| var rechenwerk = new Rechenwerk(); |
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
| using System; | |
| using System.Dynamic; | |
| using NUnit.Framework; | |
| namespace KataWordWrap | |
| { | |
| [TestFixture()] | |
| public class test_Wrapper | |
| { | |
| [TestCase("word", 4, Result="word")] |
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
| // Be sure to reference System.Web and System.Web.Extensions in your C# project | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Net; | |
| using System.Web; | |
| using System.Web.Script.Serialization; | |
| namespace parse.com | |
| { |
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
| // Be sure to reference System.Web and System.Web.Extensions in your C# project | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Net; | |
| using System.Web.Script.Serialization; | |
| namespace parse.com | |
| { | |
| public class ParseFiles |
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
| Seite Erste_Seite_laden() { | |
| Seite seite; | |
| var dateiname = Dateiname_von_Kommandozeile_holen(); | |
| Zeilen_lesen(dateiname, | |
| zeilen => { | |
| seite = new Seite { | |
| Überschrift = Überschrift_extrahieren(alleDatenzeilen), | |
| Datenzeilen = Zeilen_der_ersten_Seite_selektieren(alleDatenzeilen) | |
| }; |
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
| var BlackBox = function() { | |
| var self = this; | |
| self._events = []; | |
| self.Record = function(event) { | |
| self._events.push(event); | |
| self.Recorded(event); | |
| }; |
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 PipelineOf<T> : IFilterOf<T> | |
| { | |
| public class Result | |
| { | |
| public static Result Success(T value) | |
| { | |
| return new Result {IsSuccess = true, Value = value}; | |
| } | |
| public static Result Failure(Exception exception) |
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 Pipeline | |
| { | |
| public interface IFilter<in TIN,out TOUT> | |
| { | |
| TOUT Process(TIN message); | |
| } | |
| private readonly IList<Func<object,object>> _stages = new List<Func<object,object>>(); |
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 AssemblyLineFor<T> | |
| { | |
| public interface IFilter | |
| { | |
| T Process(T message); | |
| } | |
| private readonly IList<Func<T, T>> _stages = new List<Func<T, T>>(); |
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
| /* | |
| * Ralf Westphal, Hamburg | |
| * info@ralfw.de, @ralfw, http://blog.ralfw.de | |
| */ | |
| using System; | |
| using System.Linq; | |
| using System.Collections.Generic; | |
| namespace kata | |
| { |
OlderNewer