Headline: I’m trying to develop a new version of the FamilyShow that will use MVVM and work in both Silverlight (what I care about) and Windows Presentation Foundation (WPF) (what it was originally written in). I’ll start having a lot more posts about the differences between the two. I wish I’d started writing the differences [...]
Posts Tagged ‘MVC’
Overview of Silverlight and WPF Projects
Filed under: Technology | Tags: .NET 4.0, Genealogy, MVC, MVVM, Silverlight, WPF
MVC Team Should Rule
Filed under: Technology | Tags: EF, Moq, MVC, Silverlight, Unit Testing
Headline: I don’t think I’ve seen a team more focused on testability at Microsoft than the ASP.NET MVC (Model-View-Controller) team. I sure hope their unit testing philosophy starts to influence other teams more. Entity Framework If you use any of the patterns for the Entity Framework (one of the early versions of .NET 4.0 that [...]
Unit Testing a Very Simple ViewResult in MVC
Filed under: Technology | Tags: MVC, Unit Testing, VS 2010
Technorati Tags: Unit Testing,MVC,VS 2010 I have a view that really only provides content, is there a quick way to test that it exists? What’s the Assert? There’s really not much to unit test if you have a page that has only HTML in a MVC (Model-View-Controller) project. And to some extent, if you had [...]
Unit Testing CodeSmith Insight
Filed under: Technology | Tags: CodeSmith, Insight, Moq, MVC, Unit Testing
Technorati Tags: Unit Testing,MVC,Moq,CodeSmith,Insight As anyone that knows me knows, I use test driven development. So when I put together a Feedback page in my MVC (Model-View-Controller) site I started with my test. What should the test be? Let’s start with the User Story : As a site user (anonymous or logged in) I want [...]
Unit Test Authorize Attribute
Filed under: Technology | Tags: ASP.NET, MVC, Unit Testing, VS 2010
Technorati Tags: Unit Testing,ASP.NET,MVC,VS 2010 Story: I want to write a unit test to ensure that the Authorize attribute is applied to a controller ActionResult or ViewResult so that security is tested. Here is the test: Unit Test [TestMethod] public void PreviousSiteUserConversion_Authorization_Attributes_Have_Been_Applied() { // Arrange MethodInfo varietalMethod = typeof(AdminController).GetMethod("PreviousSiteUserConversion", new Type[] { }); // [...]
Impressed with CrystalTech for .NET 4.0
Filed under: Technology | Tags: .NET 4.0, ASP.NET, Hosting, MVC, VS 2010
Technorati Tags: .NET 4.0,Hosting,ASP.NET I’ve used CrystalTech for years. They seemed to be falling behind a bit when I started to work with the MVC (Model-View-Controller) pattern. That works MUCH better with IIS 7 than with IIS 6, but CrystalTech only had IIS 6 servers. That’s all changed! I now have no excuses for not [...]
MVC – The Start
Filed under: Technology | Tags: ASP.NET, Code Analysis, MVC, Unit Testing
Technorati Tags: ASP.NET,MVC,Code Analysis,Unit Testing This shows my initial setup of an MVC 2 RC 2 application. Using Visual Studio 2010 RC I selected File –> New –> Project… then under Visual C#, Web, I selected the ASP.NET MVC 2 Web Application. Then when I click OK I get the following dialog. Since I’m a [...]
MVC Overview
Technorati Tags: MVC What’s different about Microsoft’s ASP.NET MVC (Model-View-Controller)? There are some very good books about MVC (such as Steven Sanderson’s book), but here are the features I enjoy the most: Routing – The routing model in MVC makes you really think about what you want your URLs to look like. In EVERY instance [...]
MVC – Upcoming Series
Technorati Tags: MVC,VS 2010 I’ve been playing with Microsoft’s ASP.NET MVC (Model-View-Controller) application on and off for about a year now. It’s been moving at such a fast pace that it seemed I was always starting over with another install – CTPs, V1 Visual Studio 2008, previews for Visual Studio 2010… And now I’m currently [...]
Testing HtmlHelper in MVC 2 RC 2
Filed under: Technology | Tags: ASP.NET, Moq, MVC, TDD, Unit Testing
Technorati Tags: MVC,TDD,Mock,Moq I strive to use TDD (Test Driven Development) so not having unit tests drives me crazy. I was so pleased to run across this post http://ox.no/posts/mocking-htmlhelper-in-aspnet-mvc-rc1-using-moq making it easy for me to unit test the Html Helper. But then I downloaded the MVC 2 RC 2 and all my unit tests for [...]