C#

January 29, 2019

Easily test your .NET Core Web API methods with Swagger UI

By |2019-01-29T15:29:14+00:00January 29th, 2019|Categories: ASP.NET Core, C#, Handy Tools/Utilities, Web API|

I'm starting to think that Swashbuckle and Swagger UI should be mandatory on all Web API applications going forward. I love this framework so much right now, so I wanted to make a very brief blog post about it. It's saved me so much time and throw away code. Recently I was working on a small [...]

August 16, 2016

That Conference 2016

By |2016-08-16T13:36:33+00:00August 16th, 2016|Categories: ASP.NET, C#, General Technology|

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 [...]

March 22, 2016

Nuget Package Visualizer Extension for VS2015

By |2016-03-22T10:22:26+00:00March 22nd, 2016|Categories: C#, Handy Tools/Utilities|Tags: |

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 [...]

January 29, 2016

Transform a C# list into a DataTable

By |2016-01-29T08:59:53+00:00January 29th, 2016|Categories: C#|

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 [...]

September 24, 2015

Selenium vs Coded UI Thoughts

By |2015-09-24T16:41:06+00:00September 24th, 2015|Categories: C#, MVC, Testing|

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. [...]

June 22, 2015

How to Use the Log4Net StringMatchFilter

By |2015-06-22T21:30:12+00:00June 22nd, 2015|Categories: C#, Handy Tools/Utilities, Misc. Fixes|

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 [...]

VSLive 2015 in Austin, TX!

By |2018-06-27T17:47:50+00:00June 4th, 2015|Categories: ASP.NET, C#, General Technology, IIS, MVC, SQL Server, Testing|Tags: , |

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 [...]

January 3, 2015

Libraries for Unit Testing MVC5 Controllers

By |2015-01-03T17:25:04+00:00January 3rd, 2015|Categories: C#, General Technology, MVC, Testing|Tags: , |

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 [...]

August 28, 2014

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

By |2014-08-28T21:35:42+00:00August 28th, 2014|Categories: C#, Testing|Tags: |

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 [...]

April 24, 2014

MVC Model Binding with an Ajax Form Submit

By |2014-04-24T16:19:52+00:00April 24th, 2014|Categories: C#, MVC|Tags: , , , , |

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 [...]