If you haven’t read the previous posts on the subject of fluent interfaces using C# – I suggest you do so now – I’ll wait…Introduction Extension Methods Method Chaining Great! now you’re all ready for the forth post on the subject of using Generics:Generics were added to version 2.0 of the C# language and the … Continue reading Fluent interfaces in C# – Generics
Tag: DSL
Making string based method strongly typed
I can't believe they implemented this way – was the first thought on my mind…The method in question is part of the new(er) NUnit’s constraint based model specifically the one used to assert a property value.Before we dive deeper a few words on the constraint based model:constraint based modelMost unit testing framework have similar way … Continue reading Making string based method strongly typed
Fluent interfaces in C# – method chaining
For those of you who just tuned in, this is a third post on the subject of fluent interfaces using C#. In case you haven’t read them before – here are my previous posts on the subject:IntroductionExtension MethodsRight, now that we’re familiar with fluent interfaces it’s time to move to “Method Chaining”.Method chaining is the … Continue reading Fluent interfaces in C# – method chaining
Fluent Interfaces in C# – Extension Methods
FOr those of you who haven't read the previous post. This post is the 2nd of many where I explain how to use C# and a bag of tricks to create fluent interfaces – easily. In the previous post I’ve talked about what fluent interfaces is all about and gave a brief introduction to the … Continue reading Fluent Interfaces in C# – Extension Methods
Fluent Interfaces in C#–Introduction
Not many developers are familiar with the concept of DSLs (Domain Specific Languages) even fewer use them in their day job. It seems that creating a new language is a hard job that should only be left for professors in the academia or certain employees that work in Microsoft, Sun or some other compiler vendor. … Continue reading Fluent Interfaces in C#–Introduction
DSL presentation at the local Software Craftsmanship group
A couple of days ago I gave a talk at the local Software Craftsmanship group on the subject of Domain Specific Languages (DSL) and fluent interfaces. After the session I prepared an exercise for the audience:Create a fluent interface for an online shop that calculates discounts based on customer and purchase information. I gave a … Continue reading DSL presentation at the local Software Craftsmanship group
How to: Invoke events inside your production code using Typemock Isolator
Using Isolate.Invoke.Event enable event driven unit testing by invoking events on fake or “real” object. If you use events to communicate between parts of your application – it’s a feature you need to know and use. In the last couple of months I have been using it a lot but there is one wall I … Continue reading How to: Invoke events inside your production code using Typemock Isolator
Book review: DSLs in Action
After reading DSLs in BOO I wanted to learn more about Domain Specific languages and DSLs in Action looked like a good fit – I wasn’t disappointed… DSLs comes in many forms and flavors, most books divide them to to distinct groups – internal DSLs and External DSLs. Internal DSL is a language inside language, … Continue reading Book review: DSLs in Action
Book review: DSLs in Boo: Domain-Specific Languages in .NET
For most .NET developers XML files are the sole means of enabling users to extend their application, why mot - it’s a “human readable” extendible format - after reading this book I know better… in DSLs in BOO Oren Eini a.k.a Ayende Rahien (or is it the other way around) explains what are DSLs (Domain … Continue reading Book review: DSLs in Boo: Domain-Specific Languages in .NET