| |
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 "Repository","Unit Testing"
| Related DevelopMentor Courses | MORE | | 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. 10: public BooksController(IBooksRepository repository). 12: _repo = repository; 13: }. 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. 8: 9: }. The Problem Solver - Sunday, May 12, 2013 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. Day 2 Entity Framework and the Repository Pattern Prior to Entity Framework 4.0 couldn't? Register now. DevelopMentor Courses - Tuesday, March 1, 2011 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. 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. Entity Framework and the Repository Pattern Introduction to jQuery Cloud Computing for the.NET Developer: IaaS, PaaS, and Patterns [after?class] and jQuery. DevelopMentor Courses - Tuesday, March 1, 2011 |
5 Articles match "Repository","Unit Testing"
| The Latest from DevelopMentor | MORE | | 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. 10: public BooksController(IBooksRepository repository). 12: _repo = repository; 13: }. 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. 8: 9: }. The Problem Solver - Sunday, May 12, 2013 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. If, for example, the data access layer is represented by a number of repository interfaces, you can swap out LINQ to SQL with Entity Framework or NHibernate (or your favorite ORM) without breaking other parts of the application. The Web.Ui Enjoy. Tony and Zuzana's World - Saturday, October 8, 2011 Inversion of control and WCF 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. Lets use the first to call an repository to get some data. And the actual GetData() implementation in the Repository class. public class Repository : IRepository. {. Normally a repository is quite a bit more complex, it usually does database access or similar things, but to demonstrate the WCF integration that is good enough. public class Service1 : IService1. {. repo = repo; }. The Problem Solver - Tuesday, April 19, 2011 | -
| The Best from DevelopMentor | MORE | - 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. 10: public BooksController(IBooksRepository repository). 12: _repo = repository; 13: }. 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. 8: 9: }. The Problem Solver - Sunday, May 12, 2013 - Unity, Multiple Constructors and Configuration
3: private IRepository repository; 4: 5: public MyService(IRepository repository). 7: this.repository = repository; 8: }. Implementations --> 16: < typeAlias alias ="service" type ="Services.MyService, Services" /> 17: < typeAlias alias ="repository" type ="Services.MyRepository, Services" /> 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: Now all of this works fine and is simple Unity stuff. We use constructor injection to get the repository implementation into the service constructor. Tags: NET;IoC;Unit Testing .NET Meanderings - Monday, June 7, 2010 - 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. If, for example, the data access layer is represented by a number of repository interfaces, you can swap out LINQ to SQL with Entity Framework or NHibernate (or your favorite ORM) without breaking other parts of the application. The Web.Ui Enjoy. Tony and Zuzana's World - Saturday, October 8, 2011 - Inversion of control and WCF
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. Lets use the first to call an repository to get some data. And the actual GetData() implementation in the Repository class. public class Repository : IRepository. {. Normally a repository is quite a bit more complex, it usually does database access or similar things, but to demonstrate the WCF integration that is good enough. public class Service1 : IService1. {. repo = repo; }. The Problem Solver - Tuesday, April 19, 2011 - Inversion of control and WCF
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. Lets use the first to call an repository to get some data. And the actual GetData() implementation in the Repository class. public class Repository : IRepository. {. Normally a repository is quite a bit more complex, it usually does database access or similar things, but to demonstrate the WCF integration that is good enough. public class Service1 : IService1. {. repo = repo; }. The Problem Solver - Tuesday, April 19, 2011 %>
| | |