Testing Testing - where is my database?

Recently while creating a unit test (MSTest VS2015) to test my repository pattern, I hit a snag. Despite having defined the database in my app.config of the Test project, I could not locate my newly created database. Turns out I needed to initialise my db in the test class , like so: <pre class="wp-code-highlight prettyprint linenums:1">// Declare this property - this is set by MSTest public TestContext TestContext { get; set; } // In test initialization [ClassInitialize] public static void SetUp(TestContext context) { AppDomain.CurrentDomain.SetData("DataDirectory", Path.Combine(context.TestDeploymentDir, string.Empty)); }</pre> Saw this useful tip at Stackoverflow, which also talks about the differences between sdf (Server Explorer does not show table schema) and mdf (Server Explorer displays table schema). ...

June 10, 2016 · 1 min

Using SignalR to stream performance data

I am still coming to grips with the power of SignalR. In this demo (from PluralSight.com “ASP.NET MVC 5 Fundamentals ” by Scott Allen), performance monitoring data is streamed to a browser client. SignalR is used in ASP.Net with MVC5. In this case windows authentication was used to authenticate the user on the client (understandably so). http://smoothiecharts.org/ javascript was used to display the graphs. All very nice.

April 1, 2016 · 1 min

How I went from http to https

From http to https. Today I went from here (http): to (https:) Thanks to Troy Hunt in providing the instructions. That post was written in Sep 2013. I had to conduct a few trial and errors to get https working for my site. Background: My blog ( richardborges.net ) is hosted on Azure site (richardborgesblog.azurewebsites.net). I have pointed richardborgesblog.azurewebsites.net to richardborges.net. Visit the excellent PluralSight course by Troy Hunt on how to do this. ...

February 10, 2016 · 2 min

SSL certificate for an Azure website

Troy Hunt very informative article on how to load a free SSL certificate onto your Azure website. Thank you Troy. Written in 2013, but still relevant.

February 8, 2016 · 1 min