C#

A 26-post collection

Code This, Not That - Specflow Edition

In 2007 a different kind of diet book was published that took a concise approach to making the right food choices. Readers of the book were presented with good and »

Generate SQL Delete Statements That Respect FK Relationships

Have you ever needed to delete a record from a database table only to be thwarted by one or more foreign key violations? Then when you try to delete records »

Posted under C#, SQL

Useful Regex for Specflow Bindings

Below is a list of useful regular expressions (regex) for annotating Specflow bindings. I'm treating this post as a reference and will be updating it with new items from time »

Overusing Generics in .NET

Generic types were a great addition to C# 2.0, but they are occasionally overused. There are times where calling object.GetType() or passing the type as an argument are »

Strategies for Managing State in Specflow

Specflow is an extension for Visual Studio that binds software specifications written in the Gherkin language to executable code written in C#, VB, or some other .NET language. One of »

More Specflow Tips

UPDATE (11/18/2016): I've written a number of posts since this one was published that cover advanced Specflow topics like composable steps, tags done right, managing state, useful regex, »

Some SpecFlow Tips

UPDATE (11/18/2016): I've written a number of posts since this one was published that cover advanced Specflow topics like composable steps, tags done right, managing state, useful regex, »

Lessons from the Past Year

As 2012 comes to a close, it's time to look back on some of the things I've learned. During the past year, my focus has been on enterprise service development, »

Singleton Access from a Container

I learned a cool programming technique this week from a co-worker Kelly Brownsberger to enable container access to a singleton.  Say you have an interface IApplicationSettings exposed as a static »

Ditch the Grids and Use DockPanels

I have worked extensively with WinForms and WPF/Silverlight and noticed that docking/dock panels are not used that often.  At least this is the case where I work. »