Category

C#

That Conference 2016

I’m about a week out from attending That Conference 2016 in the Wisconsin Dells. This has been my 2nd year attending, and I can’t say enough good things about it. Clark and an army of volunteers do a tremendous job of running this year after year, and it’s greatly appreciated by all. This year was better than ever. I got to meet so many cool people from all over the Midwest, and even som…

Nuget Package Visualizer Extension for VS2015

Currently the Nuget Package Visualizer is not available in VS2015. (https://github.com/NuGet/Home/issues/1264)

We like to use this tool to get a good overview of our Nuget package dependencies. It can also be helpful when troubleshooting build issues, specifically with retrieving packages. Using Pascal’s code as a good base to start from (thanks!), I created a Nuget Package Visualizer…

Transform a C# list into a DataTable

Just a quick post about a very handy method I found on Stack Overflow. This lets you transform a list of C# objects into a data table. This can be very handy for debugging purposes, if nothing else. Being able to quickly see a large list of objects and all of their properties in one nice condensed view. Credit to Harshil Raval at…

Selenium vs Coded UI Thoughts

I should mention that this is not intended to be a full in-depth review and comparison of the two UI testing frameworks, just a quick post on my general thoughts after using both of them on the same project.

I have recently started work on introducing some basic automated UI tests to one of our solutions. Before I started down this road, I naturally googled “Selenium vs Coded UI”, to get…

How to Use the Log4Net StringMatchFilter

Log4Net is a very powerful, easy to use logging tool, so it’s no surprise that so many .NET developers use it in their applications. One under documented (at least in my opinion) feature of it, is the use of filters to be more specific about what you want your appenders to filter out.

Recently, in an application I was working on, we wanted to only log specific messages that had certain…

VSLive 2015 in Austin, TX!

I’m writing this post from the Austin airport as I’m getting ready to head home after a very educational 4 days in Austin for VSLive 2015. I wanted to quickly write down a lot of key points from all of the sessions I attended. I figure writing about something is a good way to retain a lot of it. All of them were very interesting and everything was run very smoothly, overall a great…

Libraries for Unit Testing MVC5 Controllers

There are various libraries available to help you unit test your controller actions, returned views and models, and action results with MVC. One that I have recently started using is TestStack.FluentMVCTesting. This library allows you to perform actions on your controllers within your unit tests, and then verify, with a fluent syntax, that those actions behaved correctly.

Here are a cou…

Mocking a generic ObjectSet or IObjectSet for Unit Testing Entity Framework Business Logic

test

Up until this point, I had mostly been using nHibernate for my ORM solution in most applications I work on. So when I started diving into Entity Framework (EF) models and trying to write unit tests against logic that lives in EF entities, I first encountered the ObjectSet<T> type.

Now to be clear, I was not writing unit tests against EF generated code, but rather against some custom…

MVC Model Binding with an Ajax Form Submit

You may come across a time where you would like to submit a form using Ajax, and still want to preserve the useful model binding of MVC. Normally when you submit a form using a standard submit (non async), the MVC framework will automatically take care of pulling your values out of your form and populating a model on your controller. This is one of the most useful, time-saving features of…

C# String extension method to escape characters for regular expressions (regex)

I needed a way to escape special regex characters in a string. These characters include the following: “.”, “$”, “^”, “{“, “[“, “(“, “|”, “)”, “*”, “+”, “?”, “\\” . This list was obtained from http://msdn.microsoft.com/en-us/library/4edbef7e(v=vs.110).aspx

Here is a small string extension method that will accomplish this:

Edit*- 1/24/13 – I didn’t realize there was a built in method in…

Testimonials

What My Clients Say

Karin - Hope and Future

Brent has always been very prompt and generally exceeds our expectations with his work. His maintenance fee is very reasonable. I strongly recommend him!  We get many compliments on our beautiful web site!

Dan

I contacted Krueger Web Design and Brent did everything.  He setup a test site with the changes so we could verify everything was correct before we transferred from my old hosting provider.  During the setup and conversion Brent was extremely professional and responsive. He responded to any issues the same day.

Dan Kaufman
Emily - GFCLT

We've had a great experience working with Krueger Web Design. Prompt responses, great ideas, effective work... all at a reasonable price! This was the perfect fit for our organization.

Mahmud - ACMC

I would love to recommend you to anyone! You have been very helpful when we needed you the most.

Brian - SEMNIC

Working with Krueger Web Design was effortless. Communicating what I wanted for the website and the results that I saw were identical. The customer service was always prompt and I am completely satisfied with the product.

Zach - Stadium Club

Exactly what I wanted! Fast turnaround time and very affordable. Answered all of our questions quickly and made adjustments promptly. Very easy to work with and puts everything into terminology that even I can understand!

Contact Krueger Web Design

Have a question for me? Need an estimate on some work? You can email me at brent@kruegerwebdesign.com or drop me a line using the button below:

Copyright © 2017 Krueger Web Design - All rights reserved
Web Design in Madison, WI