<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Dotnet on Software Engineering, Architecture and AWS Serverless Technology from makit</title><link>https://makit.net/tags/dotnet/</link><description>Recent content in Dotnet on Software Engineering, Architecture and AWS Serverless Technology from makit</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Sun, 17 Nov 2013 00:00:00 +0000</lastBuildDate><atom:link href="https://makit.net/tags/dotnet/index.xml" rel="self" type="application/rss+xml"/><item><title>How to unit test a MVC HTML Helper that calls Action</title><link>https://makit.net/blog/unit-test-a-mvc-html-helper/</link><pubDate>Sun, 17 Nov 2013 00:00:00 +0000</pubDate><guid>https://makit.net/blog/unit-test-a-mvc-html-helper/</guid><description>If you have a need to unit test a helper method which does a call to Action then you will hit an issue due to how HtmlHelper is not mockable and the call to Action will end up going through many layers and actually calling an action.
The below uses a simple property injection method to allow mocking the Action call so the rest of the helper functionality can be tested.</description></item><item><title>Multi-Browser Testing an MVC Application With Selenium and NUnit</title><link>https://makit.net/blog/testing-aspdotnet-mvc-application-with-selenium-and-nunit/</link><pubDate>Sat, 01 Jun 2013 00:00:00 +0000</pubDate><guid>https://makit.net/blog/testing-aspdotnet-mvc-application-with-selenium-and-nunit/</guid><description>I have been doing a lot more work in application testing recently, and automated testing of a web application UI is something I have yet to play with until now. I believe there is no reason not to do automated testing, the benefits are too good to not follow through with; my experience in small and large teams has shown the dangers and problems with not doing testing.
The example below is a simple NUnit test that uses the test case functionality of NUnit to run against multiple browsers.</description></item><item><title>Running a Windows Service as a Console Application</title><link>https://makit.net/blog/running-a-windows-service-as-a-console-application/</link><pubDate>Fri, 18 May 2012 00:00:00 +0000</pubDate><guid>https://makit.net/blog/running-a-windows-service-as-a-console-application/</guid><description>Edit: Nowadays I would recommend TopShelf . It provides a simple framework for a Windows Service that&amp;rsquo;s easy to debug, install, uninstall, etc.
Introduction If you have ever built a Windows Service then trying to debug it can be a problem, having to attach the debugger to a running process is not ideal and I like having the ability to just click &amp;ldquo;play&amp;rdquo;.
Therefore, with a few changes to a Windows Service, it can be set to run as a console application within Visual Studio for debugging but is actually a Windows Service.</description></item><item><title>.NET MVC SEO/Slug Only URLs for eCommerce</title><link>https://makit.net/blog/dotnet-slug-only-urls/</link><pubDate>Sat, 19 Feb 2011 00:00:00 +0000</pubDate><guid>https://makit.net/blog/dotnet-slug-only-urls/</guid><description>Introduction As part of my ongoing journey creating an eCommerce site I had to implement into the .NET MVC 3 website I’m creating a way of having URLs such as
website.com/pretty-pink-boots
Instead of:
website.com/product/view/100/pretty-pink-boots
The theory being that the URL is shorter and more SEO friendly, as it contains just the important information and the full URL is shown in Google. The keen eyed amongst you will realize that this means we have no &amp;ldquo;unique ID&amp;rdquo; or controller specified in the URL - so how do we know whether it’s a product and which product to route to?</description></item></channel></rss>