Ugly integration test…what can I do better?

16 Aug 2010 This test was driving me somewhat crazy… //TODO: A lot of setup noise here. Will we do similar tests again?! var threadId = -2; var threadIdFromTest = -1; IBus bus = null; var resetEvent = new ManualResetEvent(false); var uiThread = new Thread( () => { SynchronizationContext.SetSynchronizationContext( new DispatcherSynchronizationContext(Dispatcher.CurrentDispatcher)); var frame...

Resharper 5.0 Outgoing calls analysis: Example from NHibernate

13 Aug 2010 The following is a screenshot when you start off from NHibernate’s default OnLoad listener (called e.g. when you say session.Load<Cat>(23)). I’ve cut out other outgoing calls to show you the level of abstraction between loading an Entity and hitting the ExecuteReader() method of ADO.NET’s low-level API. You can access this...

Wie ich REST meiner Ehefrau erklärte

30 Jul 2010 (translated from Ryan Tomayko’s text, written 12.12.2004) <p>  <p>Ehefrau: Wer ist “Roy Fielding”? <p>Ryan: Irgendein Kerl. Er ist recht clever <p>Ehefrau: Ach, was hat er denn gemacht? <p>Ryan: Er hat geholfen, die ersten Web Server zu implementieren, und hat dann einen Haufen Forschung betrieben um zu erklären wieso das Web...

WCF: Externalize Binding Configuration Only

30 Jul 2010 In one of our current objects we are using WCF as Client-Server communication. Contracts and endpoints are easily defined: We are using a common interface assembly from which the contracts are derived and setting the endpoint URLs is a matter of providing an address root. Currently the ABC of WCF...

“respond_to” in .NET

16 Jul 2010 One of the new features in .NET 4.0 is the introduction of the dynamic keyword that delegates the check whether something can be called to the runtime. This supports the Dynamic Language runtime and allows .NEt code to call e.g. an object created by a ruby script without much syntax...