Posts

Unit Testing Entity Framework 6 DbContext

The Entity Framework version 6 has good unit testing possibilities and the documentation provided by MSDN provides a good starting point...

A Simple 3 Layer Architecture

Image
A while ago I talked about the standard architectural approach at work . The truth is I'm not completely taken with putting an API in, particularly when its a small application. So how would an application look without the API? Well, I know all of the patterns, but I haven't actually put them together and had a poke around and understood the whys and wherefores of each design decision, so I thought I would give it a try...

Using Selenium API to find HTML page components

Image
Once you have setup your acceptance tests using the page object pattern as described in an earlier post , and you continue to write scenarios you will end up needing to use the Selenium API to find HTML components as part of the acceptance test scenarios.

Entity Framework Code First to an Existing Database

Image
Recently I had a need to create an entity model from an existing database so started adding an edmx as I had done so many times before in this scenario. Then I remembered reading on the Entity Framework documentation website that its actually possible to reverse engineer a code first model .

Writing Acceptance Tests using SpecFlow & Selenium

Selenium and SpecFlow are pretty straight forward to get to grips with individually, but on larger projects when the page object pattern is used things start to get a little more complicated. I find it useful to think about three layers when organizing the code that runs the tests...

Getting Started with Entity Framework Code First

Image
The documentation  for the Entity Framework provides thorough introduction, in this post I start with the basic tutorial for code first with a view to setting up an application I can use to practice some technologies and techniques on in the future.

MVC Unit Testing Asserts with Rhino Mocks

When I first started learning to use mocking frameworks I was lucky enough to start on Moq which was nice and simple. Whenever I needed to know something there was one single google code page which told everything. Nice! Rhino Mock by example I find hard work, so I put this cheat sheet together to help get up and running quickly.