Bangladesh MVPs
Sign in
|
Join
|
Help
Home
RSS for Posts
Atom
RSS for Comments
Email Notifications
Go
Search
Go
Tags
.net
Agile
ajax
asp.net
asp.net MVC
AspNetMvc
Blog Posts
C#
DotNetShoutout
Entity Framework
IoC/DI
jQuery
JustMock
linq
Mock
MVC
Open Source
performance
production
Projects
TDD
Telerik
Uncategorized
unit test
Unity
Community
Home
Blogs
Media
Forums
Wikis
Groups
Video
Job
Archives
April 2012 (1)
March 2012 (2)
February 2012 (1)
January 2012 (2)
December 2011 (5)
November 2011 (1)
October 2011 (2)
September 2011 (1)
August 2011 (2)
July 2011 (2)
June 2011 (1)
May 2011 (4)
March 2011 (1)
February 2011 (2)
December 2010 (3)
November 2010 (3)
October 2010 (5)
September 2010 (5)
August 2010 (5)
July 2010 (4)
June 2010 (6)
May 2010 (15)
April 2010 (21)
March 2010 (6)
February 2010 (9)
January 2010 (4)
December 2009 (8)
November 2009 (9)
October 2009 (2)
September 2009 (9)
August 2009 (5)
July 2009 (4)
June 2009 (8)
May 2009 (7)
April 2009 (12)
March 2009 (14)
February 2009 (13)
January 2009 (3)
December 2008 (4)
November 2008 (1)
October 2008 (13)
September 2008 (2)
August 2008 (4)
July 2008 (1)
June 2008 (2)
Browse by Tags
All Tags
»
Agile
(
RSS
)
asp.net
AspNetMvc
C#
F#
JustMock
MSIL
Telerik
unit test
Fake a member without worrying about passing the dependency
by
Mehfuz's WebLog
I have came across this several times in forum (telerik) on how I can really fake an item yet I don’t want to pass the instance as an argument. Ideally, this is not a best design but there are third- partly libraries that you have little control over...
Filed under:
C#
,
Agile
,
JustMock
Mocking constructor
by
Mehfuz's WebLog
Often we end up in a situation where constructor call on the target type requires us to include a config file in our test project or requires firing up some external process. To better illustrate this if we create an entity framework data container...
Filed under:
C#
,
MSIL
,
Agile
,
JustMock
How to raise event for a mocked call.
by
Mehfuz's WebLog
Recently, while i was working with a support issue , i found this interesting piece of test code that i would like to share here. This is actually written by Stefan Lieser (clean code developer from Germany forwarded to me by Jan from Telerik Germany...
Filed under:
C#
,
Agile
,
JustMock
Back to school : Getting to know F#
by
Mehfuz's WebLog
This post starts with a basic introduction of F# and finally ends up writing a simple unit test for an F# member. For those who don’t know what F# is all about, Its a product from Microsoft research and now part of VS 2010 family. Actually from Wikipedia...
Filed under:
unit test
,
Agile
,
JustMock
,
F#
Hands on mocking of ASPNETMVC controller action
by
Mehfuz's WebLog
In this post, i will start with a MVC sample created from the default template project that is bundled with ASPNET MVC2 installation. This template provides not just a dummy project with folder organized but rather a full running app.The target of this...
Filed under:
unit test
,
C#
,
AspNetMvc
,
Agile
,
JustMock
Adding custom interfaces to your mock instance.
by
Mehfuz's WebLog
Previously, i made a post showing how you can leverage the dependent interfaces that is implemented by JustMock during the creation of mock instance. It could be a informative post that let you understand how JustMock behaves internally for classes...
Filed under:
C#
,
Telerik
,
Agile
,
JustMock
Mocking successive calls of similar type via sequential mocking
by
Mehfuz's WebLog
In this post , i show how you can benefit from sequential mocking feature[In JustMock] for setting up expectations with successive calls of same type. To start let’s first consider the following dummy database and entity class. public class...
Filed under:
C#
,
Agile
,
JustMock
Is your test method self-validating ?
by
Mehfuz's WebLog
Writing state of art unit tests that can validate your every part of the framework is challenging and interesting at the same time, its like becoming a samurai. One of the key concept in this is to keep our test synced all the time as underlying code...
Filed under:
unit test
,
C#
,
Agile
,
JustMock
Mocking property sets
by
Mehfuz's WebLog
In this post, i will be showing how you can mock property sets with your expected values or even action using JustMock. To begin, we have a sample interface: public interface IFoo { int Value { get ; set ; } } Now, we can create a mock that will...
Filed under:
C#
,
Telerik
,
Agile
,
JustMock
Playing with aspx page cycle using JustMock
by
Mehfuz's WebLog
In this post , I will cover a test code that will mock the various elements needed to complete a HTTP page request and assert the expected page cycle steps. To begin, i have a simple enumeration that has my predefined page steps: public enum PageStep...
Filed under:
C#
,
Telerik
,
Agile
,
JustMock
Working with multiple interfaces on a single mock.
by
Mehfuz's WebLog
Today , I will cover a very simple topic, which can be useful in cases we want to mock different interfaces on our expected mock object. Our target interface is simple and it looks like: public interface IFoo : IDisposable { void Do(); } Our target...
Filed under:
C#
,
Telerik
,
Agile
,
JustMock
Asserting with JustMock
by
Mehfuz's WebLog
In this post, i will be digging in a bit deep on Mock.Assert . This is the continuation from previous post and covers up the ways you can use assert for your mock expectations. I have used another traditional sample of Talisker that has a warehouse [Collaborator...
Filed under:
C#
,
Telerik
,
Agile
,
JustMock
Doing your first mock with JustMock
by
Mehfuz's WebLog
In this post, i will start with a more traditional mocking example that includes a fund transfer scenario between two different currency account using JustMock.Our target interface that we will be mocking looks similar to: public interface...
Filed under:
C#
,
Telerik
,
Agile
,
JustMock
JustMock is here !!
by
Mehfuz's WebLog
As announced earlier by Hristo Kosev at Telerik blogs , we have started giving out JustMock builds from today. This is the first of early builds before the official Q2 release and we are pretty excited to get your feedbacks. Its pretty early to say anything...
Filed under:
C#
,
Telerik
,
Agile
,
JustMock
Do you Encode your interface ?
by
Mehfuz's WebLog
Yesterday , i was reading Clean Code by Uncle Bob. While i was doing so , i came across a line that really stuck my thought patterns and i would like to share it with my readers as well. The line looks something like, provided that there is a shape factory...
Filed under:
asp.net
,
C#
,
AspNetMvc
,
Agile