| |
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.
|
7 Articles match "Generic","Unit Testing"
| Related DevelopMentor Courses | MORE | | Screening C# Candidates: Let’s Play 20 Questions! m of the persuasion that every.NET developer should understand basic concepts, such as C# language syntax, inheritance, generics, memory management, threading, etc. 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. What keyword constrains a generic type argument to derive from a particular class? What keyword constrains a generic type argument to derive from a particular class? > reference 2. DevelopMentor Courses - Tuesday, February 28, 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. While it is possible to use the Common Service Locator without falling into this trap, the base interface, IServiceLocator, is a non-generic interface with a generic method that allows you to create an infinite number of types, making it easier for classes to use it directly. Here is a unit test that demonstrates the usage. GreetingService doesn’t care how IGreetingRepository is implemented. DevelopMentor Courses - Wednesday, May 23, 2012 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 |
9 Articles match "Generic","Unit Testing"
| The Latest from DevelopMentor | MORE | | 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 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. The non-generic version of NinjectServiceHost uses a little reflection magic to instantiate the generic NinjectInstanceFactory<TServiceType> ). 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. While it is possible to use the Common Service Locator without falling into this trap, the base interface, IServiceLocator, is a non-generic interface with a generic method that allows you to create an infinite number of types, making it easier for classes to use it directly. Here is a unit test that demonstrates the usage. GreetingService doesn’t care how IGreetingRepository is implemented. DevelopMentor Courses - Wednesday, May 23, 2012 | -
| The Best from DevelopMentor | MORE | - ASP.NET WebAPI Security 2: Identity Architecture
Why so generic? It makes total sense to have this generic hand off point for identity between the host and WebAPI. is static, and static is bad for testing” chant. is a getter/setter and, in fact I find it beneficial to be able to set different security contexts in unit tests before calling in some logic. Pedro has beaten me to the punch with a detailed post (and diagram) about the WebAPI hosting architecture. So go read his post first, then come back so we can have a closer look at what that means for security. Do I like that? Well – yes and no. Stay tuned. www.leastprivilege.com - Thursday, March 8, 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. While it is possible to use the Common Service Locator without falling into this trap, the base interface, IServiceLocator, is a non-generic interface with a generic method that allows you to create an infinite number of types, making it easier for classes to use it directly. Here is a unit test that demonstrates the usage. GreetingService doesn’t care how IGreetingRepository is implemented. DevelopMentor Courses - Wednesday, May 23, 2012 - Screening C# Candidates: Let’s Play 20 Questions!
m of the persuasion that every.NET developer should understand basic concepts, such as C# language syntax, inheritance, generics, memory management, threading, etc. 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. What keyword constrains a generic type argument to derive from a particular class? What keyword constrains a generic type argument to derive from a particular class? > reference 2. DevelopMentor Courses - Tuesday, February 28, 2012 - Simple MVVM Toolkit versus MVVM Light Toolkit
Part 2 demonstrates navigation, messaging, dependency injection, unit testing and async operations. In addition Simple MVVM includes a multi-project Visual Studio template that supplies a Silverlight client, a WCF RIA Services web host, and a Unit Testing project. Lastly, Simple MVVM has direct support for dependency injection with MEF (Managed Extensibility Framework) and unit testing (for example with the Silverlight Unit Testing Framework). When it comes to deciding which toolkit best suites your needs, there is a spectrum of choices. Tony and Zuzana's World - Saturday, April 23, 2011 - 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 - Tackling the Problem of Modal Dialogs in MVVM
It is notoriously difficult to test the user interface by simulating things like button clicks and mouse overs. Encapsulating functionality into a view-model means that you can test it independently of the view, which is just another consumer of the view-model. If you were to display a dialog from the view-model in order to get input from the user, it would be impossible to run a unit test against the view-model because there’s no way for a unit test to respond to the dialog. One of the main benefits of MVVM is better application maintainability. null). Tony and Zuzana's World - Friday, January 28, 2011 - 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. The non-generic version of NinjectServiceHost uses a little reflection magic to instantiate the generic NinjectInstanceFactory<TServiceType> ). Enjoy. DevelopMentor Courses - Saturday, May 26, 2012 %>
| | |