-
| The Latest from DevelopMentor | 101 Results found Showing page 1 of 11 Next > |
- Unit testing code depending on the ASP.NET #WebApi HttpClient
'In a previous post I showed how to unit test an ASP.NET WebAPI Controller. Assuming for a moment the client part is also written in C# we should test that as well. Testing the BooksClient class. If we want to test this class we need to pass in an HttpClient object. This might not sound like a big deal but as this class doesn’t implement an interface we can’t use most of the standard mocking frameworks like Moq to replace the HttpClient with a test fake. Testing the GetBooks() function. test is pretty simple. Testing am HTTP POST action.
The Problem Solver - Monday, May 20, 2013 - Unit testing a ASP.NET WebAPI controller
Testing a simple ApiController that gets data Suppose we have the following ASP.NET WebAPI Controller with two Get methods, the first returns the complete list of books and the second returns the book with the requested ID. Testing the Get() method. The Get() method that returns all books is easy enough to test. Testing the Get(id) method. Testing for getting with an invalid ID is equally simple: 1: [TestMethod]. Testing an HTTP PUT operation. Testing an update using an HTTP put is just as simple as a testing a get action. 8: 9: }. 11: {.
The Problem Solver - Sunday, May 12, 2013 - Agile Clinic: Dear Allan, we have a little problem with Agile.
Sprints last three weeks, including planning, development and testing. planning, development and testing” Good, but I immediately have two lines of enquiry to peruse. Second: testing should come before development, well, at least “test scripts”, and it should be automated so if it comes after development it is trivial. Testing again: do the devs know the end conditions? Is it not done because it hasn’t finished dev or test? Sounds like too much is being taken into the sprint Are the devs practicing automated test first unit testing?
Allan Kelly's Blog - Sunday, April 28, 2013 - Devweek 2013
What’s new in Unit Testing in VS 2012 (remember that Fakes is only in VS Ultimate SKU Thanks to everyone who attended my sessions at Devweek 2013 – I had a lot of fun delivering them. It was also great to catch up with old friends and make a few new ones. As promised I have uploaded all of my slides and demos to the cloud and they can be downloaded here. WCF Preconference Workshop. Reactive Framework. Living with the GC. Workflow 4.5. WCF 4.5 remember you’ll need to be running Windows 8 for the WebSockets demos).
DevelopMentor Courses - Saturday, March 9, 2013 - 11 Agile Myths and 2 Truths
Granted retrofitting automated unit tests is harder but it is far from insurmountable. I deliver a lot of Agile training courses and I give a lot of talks about Agile ( BCS Bristol tonight ). There are some questions that come up again and again which are the result of myths people have come to believe about Agile. Consequently I spend my time debunking these myths again and again. ve been keeping a little list and there are 11 reoccurring myths. There are also two truths which are a bit more difficult for teams and companies to accept. Every team is different, get over it.
Allan Kelly's Blog - Tuesday, February 26, 2013 - What’s New in Java ApprovalTests V 0.12
Unit Testing HadoopMapReduce Before we go into the details of everything involved in HadoopMapReduce, let’s go through an overview of how we’ve been testing our MapReduce jobs. Visualizing the System Unit Testing provides many different advantages to a programmer. In particular, with MapReduce, being able to understand the flow and transformation of the data can be more enlightening than the other aspects of Unit Testing. To demonstrate this, I’m going to start output of my word count unit test. Specifically, it’s a big data thing.
DevelopMentor Courses - Wednesday, September 19, 2012 - DotNed Podcast: Peter Provost over unit testen
In deze podcast spreekt Hassan Fadili met Peter Provost over unit testen. Links: Blog: [link] Tech-Ed sessies: [link] Team Test Blog: [link] What's new for MSTest Unit Tests in Visual Studio 11 Beta: [link] Application Lifecycle Management resource center | SharePoint 2010 [link] Test Release Management Guidance: [link] Rangers Solutions by Version [link] Compare Visual Studio 2012 editions [link] Hassan's Blog voor alle relevante VS ALM informatie: [link] Met dank aan onze sponsor RedGate. Enjoy! TechEd Podcast DotNed SharePoint UnitTesting
The Problem Solver - Thursday, July 19, 2012 - DotNed Podcast: Peter Provost over unit testen
In deze podcast spreekt Hassan Fadili met Peter Provost over unit testen. Links: Blog: [link] Tech-Ed sessies: [link] Team Test Blog: [link] What's new for MSTest Unit Tests in Visual Studio 11 Beta: [link] Application Lifecycle Management resource center | SharePoint 2010 [link] Test Release Management Guidance: [link] Rangers Solutions by Version [link] Compare Visual Studio 2012 editions [link] Hassan's Blog voor alle relevante VS ALM informatie: [link] Met dank aan onze sponsor RedGate. Enjoy! TechEd Podcast DotNed SharePoint UnitTesting
The Problem Solver - Thursday, July 19, 2012 - Decouple WCF Services from their DI Container with Common Instance Factory
And I would certainly not use CIF for unit tests (or even some integration tests), where you need to leverage features of the DI container that are not exposed via the factory interface. In this case, you might want to use a super-fast DI container, such as SimpleInjector , for the application while leveraging a full-featured DI container, just as Ninject , for unit testing. Unlike the Common Service Locator (CSL), the Common Instance Factory (CIF) discourages the service location anti-pattern by using the abstract factory design pattern. Enjoy.
DevelopMentor Courses - Saturday, May 26, 2012 - Use Common Instance Factory to Abstract Away the Dependency Injection Container
lot of DI-specific code is needed for unit tests, where there is extensive mocking, and advanced features of a DI container such as Ninject come in handy. Here is a unit test that demonstrates the usage. Download the Common Instance Factory with WCF Extensions here and is also available on NuGet. while back I wrote a blog post on the Onion Architecture , an approach to building loosely-coupled applications where you can swap out particular components without affecting the rest of the application. GreetingService doesn’t care how IGreetingRepository is implemented.
DevelopMentor Courses - Wednesday, May 23, 2012