Project description

TecX* is mainly a playground to put various up-to-date technologies, tools and practices through their paces. This includes (but is not limited to) the Unity Dependency Injection Container, Caliburn.Micro, Enterprise Library, AutoFixture and PRISM.

About releases

There are no planned releases for TecX. If you are interested in anything the project offers feel free to grab it from the Source Code. Feedback is always welcome!


Advanced Configuration Engine for Unity WCF AutoMagic
Using Mixins with Unity Auto-generated Factories with Unity
Overriding constructor parameters with Unity Pick & choose your constructor arguments
Generate lazy proxies on-the-fly Contextual Parameter Binding
Generate strongly typed factory delegates Register mappings as a group
Inject Primitive Dependencies by Convention Contextual Binding
Auto-generate NullObjects Automatically match parameters to named mappings
Register multiple implementations without naming them

Loose Coupling Using Event Aggregation Transparently Caching Queries
MicroController Pattern


 Outlawtrail News Feed 
Monday, September 15, 2014  |  From Outlawtrail

While playing around with custom resources I wondered what ways there are to configure which IResourceManager is used for those generated classes. As I mentioned before I’m not particularly fond of XML for configuration purposes. But the *.config files are still the most commonly used means to configure a .NET application. My goal was to […]

Thursday, September 11, 2014  |  From Outlawtrail

In a previous post I wrote about Custom resources with T4 templates. Back then I used the ReSharper multi-file templates to add the .resx and .tt files to my projects. The one downside of that approach: it requires R# 8.x which might not be readily available. Thus I wanted to find out how to create […]

Tuesday, August 05, 2014  |  From Outlawtrail

Another piece of code that I wrote some time ago came back to my attention recently and I decided to give it the same treatment as the SmartConstructor and do some cleanup on the TypedFactory port I did for Unity. One thing I really disliked at the time was that the Unity Interception Extension cannot […]

Tuesday, March 25, 2014  |  From Outlawtrail

I’m just sitting in front of a piece of code. Only about 30 lines long it contains more than 10 checks for null values. It is barely readable even after I combined some of these checks into methods with meaningful names. I don’t dare to think about what any complexity metric would tell me about […]

Monday, March 17, 2014  |  From Outlawtrail

Resource files are an old hat in .NET. They have been around since v1.1 and are one popular way to localize strings in an application. Visual Studio provides two built-in tools (namely PublicResXFileCodeGenerator and ResXFileCodeGenerator) that generate code from the *.resx files. They generate classes with different visibility (public vs. internal) but the result is […]

Monday, January 13, 2014  |  From Outlawtrail

StyleCop is the preferred way to enforce consistency in your project’s coding style. Code guidelines in printed or electronic form are always inferior to automatic validation of said guidelines as part of your build process. You get compiler warnings or errors with (hopefully) helpful and descriptive explanations of why what you did is a bad […]

Tuesday, January 07, 2014  |  From Outlawtrail

The stats helper monkeys prepared a 2013 annual report for this blog. Here’s an excerpt: A New York City subway train holds 1,200 people. This blog was viewed about 6,200 times in 2013. If it were a NYC subway train, it would take about 5 trips to carry that many people. Click here to […]

Wednesday, July 03, 2013  |  From Outlawtrail

Jimmy Bogard recently gave a presentation at the NDCOslo about a testing strategy he calls Holistic Testing. Have a look at the video, it’s worth your time! Among a lot of other things he talked about why he doesn’t use mocking frameworks (or hand-crafted mock objects) very often in his tests. According to Jimmy, testing […]

Monday, June 10, 2013  |  From Outlawtrail

Most business applications deal with showing, analyzing and modifying some kind of business relevant data. Although it is not a rare thing that customers ask you to “load everything” into a grid and let them work the data like they “always did in Excel” this is rarely a good idea. As soon as you have […]

Friday, April 26, 2013  |  From Outlawtrail

Patterns & practices (p&p) just released a new version of the Enterprise Library and the Unity Dependency Injection Container. Grigori’s release notes can be found here. The binaries and source code for EntLib can be downloaded from MSDN. Those for Unity are quite well hidden for some reason… Grab them here.

Tuesday, April 16, 2013  |  From Outlawtrail

Long time no see. About two months without anything interesting (related to dev topics at least) happening. Recently I had a look at some of the katas at Coding Dojo. Quite interesting stuff. Today I want to present my shot at the Harry Potter book discount kata. First things first: I used xUnit and especially [...]

Wednesday, February 27, 2013  |  From Outlawtrail

Have you ever wished that you were able to go back in time? At least in software development that is relatively easy. If you ask someone how you could simulate the passing of time for a unit test you might get an answer that involves TypeMock Isolator or something even more wicked. But you can [...]

Monday, February 18, 2013  |  From Outlawtrail

The first bits of EntLib6 are out! Welcome the Semantic Logging Application Block! It’s based on Event Tracing for Windows (ETW, which is baked into the Windows OS) but additionally offers support for classic logger targets like flat files, databases etc. It provides a structured, extensible log format for all of your log messages which [...]

Monday, January 14, 2013  |  From Outlawtrail

Last week Grigori Melnik, Principal Program Manager at Microsoft patterns & practices and responsible for the development of the Microsoft Enterprise Library and Unity Dependency Injection Container, asked wether I would like to join the Advisory Board for EntLib6/Unity3. I happily accepted the invitation I’m looking forward to participating in the development of a great [...]

Tuesday, January 01, 2013  |  From Outlawtrail

The stats helper monkeys prepared a 2012 annual report for this blog. Here’s an excerpt: The new Boeing 787 Dreamliner can carry about 250 passengers. This blog was viewed about 1,200 times in 2012. If it were a Dreamliner, it would take about 5 trips to carry that many people. Click here to see [...]

Wednesday, December 19, 2012  |  From Outlawtrail

Pipes and filters (or just pipeline) is another common pattern. Oren Eini and Jeremy Likness both have very interesting posts about it on their respective blogs. While Jeremy’s post aims at the slick creation of pipelines, Oren talks more about the pattern itself and how to implement it in a specific manner (using input and [...]

Monday, December 17, 2012  |  From Outlawtrail

I prefer unit tests over integration tests any time. But at some point you just can’t avoid the latter. You need your components to hit a database to verify that your queries are correct and that you update the right records. Some databases (like RavenDB for example, see Ayende’s answer) support running completely in-memory specifically [...]

Wednesday, December 05, 2012  |  From Outlawtrail

The Specification Pattern. Yet another one I find useful in daily business. But a few enhancements can make it even more useful and a lot nicer to handle. 1, 2, many! The CompositeSpecification is most often implemented with two fields for spec1 and spec2 or left and right. The AndSpecification and OrSpecifications evaluate these fields [...]

Monday, December 03, 2012  |  From Outlawtrail

We use tracing to find out what takes us so long when processing X or computing Y. Tracing is a cross-cutting concern. It can be used anywhere in our applications. As such there are some well-known ways to implement it to keep our business code clean such as using hand-crafted decorators or an interception framework [...]

Thursday, November 08, 2012  |  From Outlawtrail

Composition over inheritance is a known but unfortunately not very well understood OOD principle. All too often I see code like this: or this: The derived class adds a method or two. Maybe a property. And it carries all the weight of the super-class List<T>. The property of type List<Foo> is there for anybody to [...]

 Outlawtrail News Feed 

Last edited Sep 12, 2014 at 12:02 PM by weberse, version 67