| |
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.
|
6 Articles match "IOC","Unit Testing"
| Related DevelopMentor Courses | MORE | | 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 Guerrilla.NET (US) Training DI/IoC : Use powerful OO design patterns and techniques to build loosely-coupled, testable, and maintainable applications including Dependency Injection (DI), Inversion of Control (IoC), and unit testing. MEF : Leverage Managed Extensibility Framework (MEF),NET 4's built-in dependency management system, to implement DI and IoC seamlessly in your applications. DI/IoC : Use powerful OO design patterns and techniques to build loosely-coupled, testable, and maintainable applications including Dependency Injection (DI), Inversion of Control (IoC), and unit testing. DevelopMentor Courses - Tuesday, March 1, 2011 Guerrilla.NET (UK) Training Create robust code using unit testing frameworks and mocking Simplify your service deployment with zero config services with WCF 4.0. Write modern web applications that are simpler to unit test with ASP.NET MVC. Unit Testing Using unit testing comprehensively within software development is a growing movement. Unity testing allows refactoring and maintenance with the confidence that existing functionality is not broken. Leverage new features of C# 4.0, including named and optional parameters and dynamic typing. couldn't? Since.NET 1.0, DevelopMentor Courses - Tuesday, March 1, 2011 |
7 Articles match "IOC","Unit Testing"
| The Latest from DevelopMentor | MORE | | 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 Peeling Back the Onion Architecture MVC (which stands for Model-View-Controller) lends itself to an Agile development methodology where TDD and BDD (Test-Driven and Behavior-Driven Development) are important components. Writing applications that are testable requires that you separate business logic from presentation logic so that they can be independently tested. Representing your repositories and services as interfaces decouples consumers from concrete implementations, enabling you to swap one out for another without affecting consumers, such as client UI’s or tests. Download the code for this article. Tony and Zuzana's World - Saturday, October 8, 2011 Inversion of control and WCF Lots of people like to use in inversion of control container, usually shortened to IOC, to inject dependencies into classes. The are lots of reasons for doing so but in the end they mostly boil down to separation of concern which makes thing more modular and thereby easier to reuse and unit test. When you start doing so manually injecting dependencies into a types constructor is easy enough but after a while this tends to become tedious and getting an IOC container to do this for you is a lot easier. Lets use the first to call an repository to get some data. Bind ().ToConstant(Kernel); The Problem Solver - Tuesday, April 19, 2011 | -
| The Best from DevelopMentor | MORE | - Unity, Multiple Constructors and Configuration
I’ve been working with the Unity IoC container from Microsoft Patterns and Practices recently. Its mostly straightforward as IoC containers go but one thing had me puzzled for a while as its not really documented or blogged as far as I can see; so I decided to blog it so hopefully others looking will stumble across this article. Now the idea here is I’m going to wire this together via dependency injection and the Unity IoC container. Notice as we’re using IoC that there are no hard coded dependencies – everything is wired up via the container. 3: void DoWork(); 4: }. .NET Meanderings - Monday, June 7, 2010 - 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 - Inversion of control and WCF
Lots of people like to use in inversion of control container, usually shortened to IOC, to inject dependencies into classes. The are lots of reasons for doing so but in the end they mostly boil down to separation of concern which makes thing more modular and thereby easier to reuse and unit test. When you start doing so manually injecting dependencies into a types constructor is easy enough but after a while this tends to become tedious and getting an IOC container to do this for you is a lot easier. Lets use the first to call an repository to get some data. Bind ().ToConstant(Kernel); The Problem Solver - Tuesday, April 19, 2011 - 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. Enter Dependency Injection ! Tony and Zuzana's World - Tuesday, March 8, 2011 - Peeling Back the Onion Architecture
MVC (which stands for Model-View-Controller) lends itself to an Agile development methodology where TDD and BDD (Test-Driven and Behavior-Driven Development) are important components. Writing applications that are testable requires that you separate business logic from presentation logic so that they can be independently tested. Representing your repositories and services as interfaces decouples consumers from concrete implementations, enabling you to swap one out for another without affecting consumers, such as client UI’s or tests. Download the code for this article. Tony and Zuzana's World - Saturday, October 8, 2011 - Inversion of control and WCF
Lots of people like to use in inversion of control container, usually shortened to IOC, to inject dependencies into classes. The are lots of reasons for doing so but in the end they mostly boil down to separation of concern which makes thing more modular and thereby easier to reuse and unit test. When you start doing so manually injecting dependencies into a types constructor is easy enough but after a while this tends to become tedious and getting an IOC container to do this for you is a lot easier. Lets use the first to call an repository to get some data. Bind ().ToConstant(Kernel); The Problem Solver - Tuesday, April 19, 2011 - MDN - Augusta Developer Event, 27th of August 2009.
This tool differs from an IoC (Inversion of Control) container because focuses directly at application composability, extensibility, and discover. After working on the problem of capturing business intent in metadata and test definitions for years, she’s working with industry improvements in these areas. She’s also working on full life cycle improvements, such as unit testing, better debugging and static analysis (FxCop). The MDN meeting on the 27th of August, 2009 will be an INETA sponsored event. third session, also on code generation will be done by Mark Blomsma. The Blomsma Code - Monday, July 27, 2009 %>
| | |