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.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Mvc; | |
using System.Text; | |
using System.Reflection; | |
namespace TopMenuBasedOnAreas.HtmlHelpers | |
{ |
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
[TestMethod()] | |
public void Foo_should_start_mspaint() | |
{ | |
var cmdHandler = new Mock<ICommandHandler>(); | |
var qryHandler = new Mock<IQueryHandler>(); | |
var controller = new Controller(cmdHandler.Object, qryHandler.Object); | |
controller.Foo("mspaint.exe"); | |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace TestReader | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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 CommandHandler : ICommandHandler | |
{ | |
private IKernel _kernel; | |
public CommandHandler() { } | |
public CommandHandler(IKernel kernel) | |
{ | |
_kernel = kernel; | |
} |
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 LoggingErrorHandler : IErrorHandler | |
{ | |
public void Handle(Nancy.HttpStatusCode statusCode, Nancy.NancyContext context) | |
{ | |
object error; | |
var gotException = context.Items.TryGetValue(NancyEngine.ERROR_EXCEPTION, out error); | |
if (!gotException) | |
return; |
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
The UI first reported an NPM error on installing twitter-bootstrap-node, but there were no details in the dialog. Ignoring that, WebMatrix crashed a bit after. | |
I found this in the eventlog. | |
PROCESS_CRASH | |
The process terminated unexpectedly. | |
Exception:System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.AggregateException: One or more errors occurred. ---> NodeNpm.NpmException: Failed: npm reported an error. | |
at NodeNpm.NpmApi.ListChildren() |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace NaiveEventSourcing | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
namespace Infrastructure | |
{ | |
public interface IQueryHandler<TIn, TOut> | |
where TIn : class | |
where TOut : class | |
{ | |
TOut Execute(TIn query); | |
} | |
} |
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
1. When the user adds an accountnumber, a command gets sent which isn't handled yet. | |
2. When a supervisor logs on, he gets a list of commands to approve or decline, including the AddAccountNumber. | |
3. When the supervisor approves the AddAccountNumber command, it will be handled. |
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.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Newtonsoft.Json; | |
using Ninject; | |
namespace ModelingFourEyes | |
{ |
OlderNewer