| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
19 Articles match "Framework","Unit Testing"
| Related DevelopMentor Courses | MORE | | 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. 14: {. Result; 18: }. The Problem Solver - Monday, May 20, 2013 Testing Difficult Code I recently did 3 videos in my ‘ Using ApprovalTests in.Net’ series that deal with how to test difficult code. These video actually have very little to do with either.Net or ApprovalTests, but they are common issues you run into when unit testing. Seams Testing difficult Code comes down to 2 things: Can I call the Method? The Peel The hardest part about long methods is you have to run all of it to test even a small part of it. The Slice (Mocks) Even if you get into the piece you are looking to test, you might not be able to get all the way through it. DevelopMentor Courses - Wednesday, March 21, 2012 Screening C# Candidates: Let’s Play 20 Questions! In addition, the breadth of the technical spectrum is mind-boggling, and a developer needs the capacity to absorb vast quantities of knowledge from various parts of the framework. For example, someone might be called upon to build a WPF app retrieving data from a WCF service that queries a SQL database using Entity Framework with Ninject for dependency injection and MOQ for unit testing. The only way to test for those things is to perform an in-depth technical interview performed by a senior technical specialist. C# Phone Screen Questions (without Answers). DevelopMentor Courses - Tuesday, February 28, 2012 |
30 Articles match "Framework","Unit Testing"
| The Latest from DevelopMentor | MORE | | 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. 14: {. Result; 18: }. The Problem Solver - Monday, May 20, 2013 Devweek 2013 Reactive Framework. 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. 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 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. This was undoubtedly a design-decision by the MS team to achieve a wider adoption by making the Common Service Locator compatible with both dependency injection and service location frameworks. Here is a unit test that demonstrates the usage. The power of the abstraction comes to the fore when using dependency injection with frameworks such as ASP.NET MVC or WCF. Ah, but there’s a problem. DevelopMentor Courses - Wednesday, May 23, 2012 | -
| The Best from DevelopMentor | MORE | - Significant Advances in Unit Testing Windows Workflow
This post describes a unit testing library for testing Windows Workflow Foundations. It is not a framework like HarnessIt , NUnit , or MsTest. Rather it's a library that can be used in conjunction with any of these testing frameworks. Download the library with sample test project here: Kennedy.WorkflowTesting.zip (216 KB). First a Little History: Last September I posted this teaser entitled Unit Testing Coming to a Workflow Near You. Unit Testing Activities with Windows Workflow Foundation by Ron Jacobs. Scott Allen. Michael C. Kennedy's Weblog - Sunday, January 18, 2009 - 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. 14: {. Result; 18: }. The Problem Solver - Monday, May 20, 2013 - Significant Advances in Unit Testing Windows Workflow
This post describes a unit testing library for testing Windows Workflow Foundations.It is not a framework like HarnessIt, NUnit, or MsTest. Rather it’s a library that can be used in conjunction with any of these testing frameworks. Download the library with sample … Continue reading → Agile.NET agile Articles Visual Studio WF Workflow Michael C. Kennedy's Weblog - Sunday, January 18, 2009 - Testing Difficult Code
I recently did 3 videos in my ‘ Using ApprovalTests in.Net’ series that deal with how to test difficult code. These video actually have very little to do with either.Net or ApprovalTests, but they are common issues you run into when unit testing. Seams Testing difficult Code comes down to 2 things: Can I call the Method? The Peel The hardest part about long methods is you have to run all of it to test even a small part of it. The Slice (Mocks) Even if you get into the piece you are looking to test, you might not be able to get all the way through it. DevelopMentor Courses - Wednesday, March 21, 2012 - Keep Dependency Injection Simple with MEF
Having to click through screens to test an application can be tedious and time-consuming, and it may not provide good code coverage or regression testing. By abstracting the View into a separate ViewModel, you can independently test the ViewModel to make sure it behaves as expected. The unit testing framework is simple another consumer of the View-Model. Whether or not you subscribe to the tenants of Test-Driven Development (TDD), you should test your ViewModels without any dependency on WCF services or databases. Have fun! Tony and Zuzana's World - Tuesday, March 8, 2011 - Survival Skills for Developers
If reading and writing from a database is a basic skill like walking, then a good data access framework is your walking stick. I’m a.NET guy so I’ve worked with NHibernate, SubSonic, Entity Framework, and a couple homegrown solutions. Unit testing. You must be able to write and execute unit tests for the language and platform you are developing on. Unit testing is like a compass. Unit testing has its fair share of zealous proponents and vehement haters. Unit testing is incredibly important in some circumstances. Ardent Dev - Wednesday, February 10, 2010 - Devweek 2013
Reactive Framework. 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. 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 %>
| | |