Stories recently tagged with 'TDD' Subscribe to this feed

Auto-mocking hierarchies (a.k.a. recursive mocks) with Moq (www.bengtbe.com)

submitted by bengtbebengtbe(450) 5 months, 13 days ago

In this post I will show how the auto-mocking hierarchies (a.k.a. recursive mocks) feature of Moq can greatly simplify your unit tests. read more...

add a comment | category: | Views: 9

tags: another

ASP.NET MVC, TDD and Fluent Validation (richarddingwall.name)

published 5 months, 19 days ago, submitted by JemmJemm(9400) 5 months, 21 days ago

"Yesterday I wrote about ASP.NET MVC, TDD and AutoMapper, and how you can use them together in a DDD application. Today I thought I would follow up and explain how to apply these techniques to another important (but boring) part of any web application: user input validation." read more...

add a comment | category: | Views: 239

tags: another

Introduction to Test-Driven Development with ASP.NET MVC (weblogs.asp.net)

submitted by mvcguymvcguy(45) 6 months, 17 days ago

Introduction to Test-Driven Development (TDD) with ASP.NET MVC. read more...

add a comment | category: | Views: 22

tags: another

ASP.NET MVC TDD using Visual Studio 2010 (blog.maartenballiauw.be)

published 7 months, 30 days ago, submitted by maartenbamaartenba(5585) 7 months, 30 days ago

Phil Haack announced yesterday that the tooling support for ASP.NET MVC is available for Visual Studio 2010. Troy Goode already blogged about the designer snippets (which are really really cool, just like other parts of the roadmap for ASP.NET MVC 2.0). I’ll give the new TDD workflow introduced in VS2010 a take. read more...

1 comment | category: | Views: 248

tags: another

A Software Craftsman’s 200$ Bookshelf Upgrade! (blog.goeran.no)

submitted by GOEranGOEran(380) 8 months, 12 days ago

About three weeks ago, I asked my readers and some people in the Norwegian developer community about what books they have in their bookshelf. The response was good, and I ended up with many good book recommendations. Today I placed a new order on Amazon, and spent 200$ to upgrade my bookshelf. If you read further, you’ll see which books I ordered. read more...

add a comment | category: | Views: 25

tags: another

Toward a Better Use of Context/Specification (stevenharman.net)

submitted by usshermussherm(5255) 8 months, 13 days ago

have you hand-rolled your own base class for your Context/Specification style specs? Curious whats different between a Context/Specification base class and a typical unit testing base class? read on... read more...

add a comment | category: | Views: 30

tags: another

Redefining ALT.NET or rather, rediscovering it’s meaning (blog.decayingcode.com)

submitted by arch4ngelarch4ngel(540) 8 months, 15 days ago

I’ve heard about ALT.NET about a year ago. At first, I thought that it was about using alternatives to Microsoft or to avoid Microsoft software. ALT.NET was supposed to be about going “alternative” and being against “The Man” and being for “The People”. Well, I must agree that I wasn’t totally right with that. I mean, Microsoft make some mess but it also does a lot of great tools and particularly a great IDE with lots of extensibility point. Then, I did what I should have done in the beginning. I looked up the definition. read more...

add a comment | category: | Views: 6

tags: another

Unit testing WCF services through dependency injection (www.toomuchcode.com)

submitted by JemmJemm(9400) 8 months, 22 days ago

"When building a WCF service in an enterprise application, this service frequently depends on other services or resources. When creating unit tests for this service, we don’t want to host all these other services over WCF endpoints. Instead we will most likely want to inject mock objects. In some case we may even want to inject some in-process instances of these other services." read more...

add a comment | category: | Views: 44

tags: another

The Wonders Of InternalsVisibleTo (jason.whitehorn.ws)

submitted by senfosenfo(870) 9 months, 1 day ago

Demonstrates how to expose an assembly's internal parts to "friend" classes using the InternalsVisibleTo attribute. read more...

add a comment | category: | Views: 46

tags: another

The best way to learn new API’s; TDD! (blog.goeran.no)

published 9 months, 5 days ago, submitted by GOEranGOEran(380) 9 months, 6 days ago

In this post I will tell you a story about how I used TDD (Test Driven Development) to learn new a new API, and how I successfully managed to accomplish my task before expected, and delivered 100% working code (no defects), even though I did something I’ve never done before – interested? I thought so ;) read more...

add a comment | category: | Views: 318

tags: another

Kona: Continuous Integration and Better Unit Testing (blog.wekeroad.com)

published 9 months, 27 days ago, submitted by johnrummelljohnrummell(1255) 10 months ago

In this screencast Rob Conery and Brad Wilson talk about continuous integration with TeamCity, Unit Testing with xUnit and TDD in general. "This screencast went from a simple idea – talking to Brad Wilson about better Unit Testing – to some pretty broad topics such as source control, unit testing, and continuous integration. I seriously could have written a whole book based on the stuff flying through my mind. I reigned it in a bit and decided to focus on two things that I don’t think get enough press: writing a good Unit Test coupled with Continuous Integration." read more...

add a comment | category: | Views: 178

tags: another

DDD & TDD using EF, Part 2.A Unit Testing Entities With Moq3 (mosesofegypt.net)

submitted by mosessaurmosessaur(5050) 10 months, 15 days ago

I had few previous posts about DDD & TDD with Entity Framework that you might need to return to them before you proceed with this post. To summarize these posts, I was trying to build testable Models that is based on EF. But EF doesn't support Persistence Ignorance in its first version which make testing it in most cases require a database connection where you can test you code against it. My target was to build a testable models based on EF and that is independent of any underlying data source. read more...

add a comment | category: | Views: 31

tags: another

Eliminating ToList().ForEach() by TDD and Extensions Methods (www.bengtbe.com)

submitted by bengtbebengtbe(450) 11 months, 1 day ago

Following "Program to an interface, not an implementation", you should use IList instead of List. However, you then lose access to some great delegate methods of the List class (e.g. ForEach, ConvertAll). In order to use them you have to first call ToList(). In this post I will use Test Driven Development (TDD) to add these as extension methods to the generic IEnumerable interface, elimintating the need to call ToList(). read more...

add a comment | category: | Views: 50

tags: another

Unit Testable Configuration Manager - Kazi Manzur Rashid's Blog (weblogs.asp.net)

published 11 months, 6 days ago, submitted by iftekharahmedamitiftekharahmedamit(530) 11 months, 6 days ago

If you are a TDD purist, you should know that accessing file system in Unit Test is violating the rule. But in our application, our infrastructural code often requires to access the configuration values form web.config/app.config. In this post, I will show you how can create a simple wrapper class which you can use in your unit tests without hitting the file ... read more...

1 comment | category: | Views: 181

tags: another

TDD: How I applied TDD to a simple problem (blog.decayingcode.com)

submitted by arch4ngelarch4ngel(540) 11 months, 8 days ago

A month or two ago I had to built a component that had to analyse a string a return some information out of it. The best result for this was a Regular Expression and I was sure. So I started writing what kind of input would be valid and which one should not be allowed. read more...

add a comment | category: | Views: 10

tags: another

Implementing UnitOfWork Pattern In Linq To SQL Application (weblogs.asp.net)

published 11 months, 13 days ago, submitted by iftekharahmedamitiftekharahmedamit(530) 11 months, 14 days ago

Implementing UnitOfWork Pattern In Linq To SQL Application In my previous post, I have shown how to create Linq to Sql Repository which will have the maximum code coverage, In this post, I will show a simple UnitOfWork class which will flash the changes back to your database. I will be again use my ongoing UnityCommonServiceLocatorMVC project. Lets assume that in your ASP.NET MVC application you have a method in your controller which will add a category and its associate product in the Northwind database. read more...

add a comment | category: | Views: 377

tags: another