Stories recently tagged with 'mock'

Mocking - VISUG session(blog.maartenballiauw.be)

submitted by brianmdbrianmd(5) 3 years ago

Thursday evening, I did a session on Mocking for the VISUG (Visual Studio User Group Belgium). As promised, here is the slide deck I’ve used. The session will be available online soon, in the meantime you'll have to go with the slide deck. read more...

add a comment |category: |Views: 3

tags: another

Unit Testable Configuration Manager - Kazi Manzur Rashid's Blog(weblogs.asp.net)

submitted by iftekharahmedamitiftekharahmedamit(530) 3 years, 2 months ago

If you are a TDD purist, you should know that accessing file system in Unit Test is violating the rule. But in our application, our infrastructural code often requires to access the configuration values form web.config/app.config. In this post, I will show you how can create a simple wrapper class which you can use in your unit tests without hitting the file ... read more...

1 comment |category: |Views: 239

tags: another

Implementing UnitOfWork Pattern In Linq To SQL Application(weblogs.asp.net)

submitted by iftekharahmedamitiftekharahmedamit(530) 3 years, 3 months ago

Implementing UnitOfWork Pattern In Linq To SQL Application In my previous post, I have shown how to create Linq to Sql Repository which will have the maximum code coverage, In this post, I will show a simple UnitOfWork class which will flash the changes back to your database. I will be again use my ongoing UnityCommonServiceLocatorMVC project. Lets assume that in your ASP.NET MVC application you have a method in your controller which will add a category and its associate product in the Northwind database. read more...

add a comment |category: |Views: 567

tags: another

Implementing UnitOfWork Pattern In Linq To SQL Application(weblogs.asp.net)

submitted by iftekharahmedamitiftekharahmedamit(530) 3 years, 3 months ago

Implementing UnitOfWork Pattern In Linq To SQL Application In my previous post, I have shown how to create Linq to Sql Repository which will have the maximum code coverage, In this post, I will show a simple UnitOfWork class which will flash the changes back to your database. I will be again use my ongoing UnityCommonServiceLocatorMVC project. Lets assume that in your ASP.NET MVC application you have a method in your controller which will add a category and its associate product in the Northwind database. read more...

add a comment |category: |Views: 567

tags: another

Implementing UnitOfWork Pattern In Linq To SQL Application(weblogs.asp.net)

submitted by iftekharahmedamitiftekharahmedamit(530) 3 years, 3 months ago

Implementing UnitOfWork Pattern In Linq To SQL Application In my previous post, I have shown how to create Linq to Sql Repository which will have the maximum code coverage, In this post, I will show a simple UnitOfWork class which will flash the changes back to your database. I will be again use my ongoing UnityCommonServiceLocatorMVC project. Lets assume that in your ASP.NET MVC application you have a method in your controller which will add a category and its associate product in the Northwind database. read more...

add a comment |category: |Views: 567

tags: another

100% Unit Testable Linq To Sql Repository - Kazi Manzur Rashid's Blog(weblogs.asp.net)

submitted by jantujantu(1045) 3 years, 3 months ago

In this post, I will show you how you can architect your Linq To Sql repository which will have 100% code coverage. I will use our favorite Northwind database along with my ongoing UnityCommonServiceLocatorMVC project. First, lets add a Linq To Sql diagram in our project and drag n drop the Category and Product table that will look something like foll... read more...

add a comment |category: |Views: 372

tags: another

Expose New Linq Operations from the HashSet<T> Performance Monster(blog.domaindotnet.com)

submitted by dcarrdcarr(790) 3 years, 8 months ago

Linq is not just about databases. It’s about reading the registry, your hard-disk, or even a list of function pointers to be invoked. Linq is about more event then sets (collections). It’s about making tasks easier in many cases and vastly more powerful (and most importantly your code more readable and maintainable at the same time). It’s astounding just how fast the HashSet<T> collection is. This post will show how to gain additional power that is fully supported from Microsoft which is often overlooked, yet it can solve some of the hardest problems (especially around performance however don’t prematurely optimize!). Linq, HashSet, ORM, NHibernate, Linq to NHibernate, Linq Undocumented, Functional Programming, .NET 3.5 read more...

3 comments |category: |Views: 530

tags: another