http://mehfuzh.myopenid.com/
Name: http://mehfuzh.myopenid.com/
Score: 474.24
Last Seen: 529 days, 4 hours, 24 minutes ago
Member Since: 2 December, 2008
DotNetShoutout
atom rss
3
Shouts

Welcome to my new blog

published 913 days, 27 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 913 days, 8 hours, 53 minutes ago
Thursday, November 18, 2010 6:29:45 PM GMT Thursday, November 18, 2010 10:04:25 AM GMT
November 11, 2010Welcome to my new blog After blogging few years in http://weblogs.asp.net/rashid I have finally moved to my own domain with my brand new blogging engine. There were quite a few motivations behind the changes. I know there were times when having a blog in weblogs.asp.net and blogging along with The Gu and gang was a dream for me as like any other ASP.NET developer. But my blog was never like the 1st generation bloggers of weblogs.asp.net, always filled up with advertises. But obviously t... (more)
category: Agile | clicked: 0 | comment | | source: kazimanzurrashid.com
8
Shouts

How to raise event for a mocked call. - Mehfuz's WebLog

published 953 days, 4 hours, 37 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 955 days, 11 hours, 14 minutes ago
Saturday, October 09, 2010 2:20:14 PM GMT Thursday, October 07, 2010 7:43:27 AM GMT
Wednesday, October 06, 2010 5:01 PM mehfuzh How to raise event for a mocked call. 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). As the title states,  it is to mock a specific event for an expected call.   Now Stefan wants to raise an event from WebCli... (more)
category: Agile | clicked: 1 | comment | | source: weblogs.asp.net
tags: C#, JustMock
14
Shouts

Mocking SPContext.Current with JustMock - Mehfuz's WebLog

published 962 days, 14 hours, 2 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 965 days, 5 hours, 59 minutes ago
Thursday, September 30, 2010 4:54:55 AM GMT Monday, September 27, 2010 12:58:27 PM GMT
Monday, September 27, 2010 7:42 PM mehfuzh Mocking SPContext.Current with JustMock Today, I happen to find an interesting post on mocking SharePoint context using TypeMock. Being a JustMocker, i thought rather to follow the footsteps and see if can do the same with JustMock. I am no SharePoint expert. Occasionally, I use a Windows 2003 VM with SharePoint server installed which gives me the required flavor of SharePoint for testing  SP capabilities of JM. ... (more)
category: Agile | clicked: 2 | comment | | source: weblogs.asp.net
tags: JustMock;C#;
11
Shouts

Back to school : Getting to know F# - Mehfuz's WebLog

published 1008 days, 8 hours, 37 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 1010 days, 8 hours, 22 minutes ago
Sunday, August 15, 2010 10:20:17 AM GMT Friday, August 13, 2010 10:35:30 AM GMT
Friday, August 13, 2010 4:27 PM mehfuzh Back to school : Getting to know F# 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 it is described as follows: F# (pronounced F Sharp) is a multi-paradigm programming language, targeting the .NET Framework, that... (more)
category: Agile | clicked: 1 | comment | | source: weblogs.asp.net
tags: F#;JustMock;
10
Shouts

Mocking LINQ to SQL [Continued…] using RLINQ - Mehfuz's WebLog

published 1024 days, 6 hours, 56 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 1025 days, 9 hours, 54 minutes ago
Friday, July 30, 2010 12:01:01 PM GMT Thursday, July 29, 2010 9:03:22 AM GMT
Thursday, July 29, 2010 2:28 PM mehfuzh Mocking LINQ to SQL [Continued…] using RLINQ After making the post on mocking LINQ to SQL, this morning i was having a chat with Stephen forte and come to know that telerik a has product named RLINQ. RLINQ is built on top of OpenAccess and it supports variety of databases. Being curious, i thought of giving a spin with it and may be try to mock the its LINQ to SQL implementation using JustMock.   Now, before i star... (more)
category: Agile | clicked: 1 | comment | | source: weblogs.asp.net
tags: C#, RLINQ, JustMock
5
Shouts

Unit testing LINQ to SQL - Mehfuz's WebLog

published 1034 days, 14 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 1034 days, 4 hours, 31 minutes ago
Tuesday, July 20, 2010 6:43:23 PM GMT Tuesday, July 20, 2010 2:26:12 PM GMT
Tuesday, July 20, 2010 7:28 PM mehfuzh Unit testing LINQ to SQL Unit testing LINQ to SQL repositories can be very challenging. Unit testing such requires faking hard to mock classes and requires simulation to return your custom data for a particular LINQ statement. In this post, i will show how you can mock your LINQ repositories easily without much digging in. As,  i was goggling [my start page is bing, its a matter of time when i will be bing-ing :-)] ... (more)
category: Agile | clicked: 1 | comment | | source: weblogs.asp.net
tags: C#, JustMock
8
Shouts

Hands on mocking of ASPNETMVC controller class - Mehfuz's WebLog

published 1059 days, 8 hours, 48 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 1061 days, 9 hours, 58 minutes ago
Friday, June 25, 2010 10:09:22 AM GMT Wednesday, June 23, 2010 8:58:45 AM GMT
Wednesday, June 23, 2010 3:29 PM mehfuzh Hands on mocking of ASPNETMVC controller class 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 post is to show a mocking of a controller action, in that regard i have picked  registration action chosen from the acc... (more)
category: Agile | clicked: 0 | comment | | source: weblogs.asp.net
tags: C#, TDD, ASP .NET MVC
11
Shouts

Start Learning Ruby with IronRuby – Setting up the Environment - Kazi Manzur Rashid

published 1066 days, 5 hours, 23 minutes ago posted by jantujantu 1068 days, 9 hours, 18 minutes ago
Friday, June 18, 2010 1:34:10 PM GMT Wednesday, June 16, 2010 9:39:23 AM GMT
Recently I have decided to learn Ruby and for last few days I am playing with IronRuby. Learning a new thing is always been a fun and when it comes to adorable language like Ruby it becomes more entertaining.Like any other language, first we have to create the development environment. In order to run IronRuby we have to download... (more)
category: How To | clicked: 1 | 1 comment | | source: weblogs.asp.net
tags: C#, IronRuby, Ruby
5
Shouts

Adding custom interfaces to your mock instance. - Mehfuz's WebLog

published 1074 days, 10 hours ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 1075 days, 3 hours, 4 minutes ago
Thursday, June 10, 2010 8:56:59 AM GMT Wednesday, June 09, 2010 3:52:48 PM GMT
Wednesday, June 09, 2010 9:57 PM mehfuzh Adding custom interfaces to your mock instance. 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 or interfaces implement other interfaces into it. But the question remains, how you can add your own custom interface to ... (more)
category: Agile | clicked: 0 | comment | | source: weblogs.asp.net
tags: JustMock;C#;
7
Shouts

Mocking successive calls of similar type via sequential mocking - Mehfuz's WebLog

published 1083 days, 8 hours, 16 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 1084 days, 3 hours, 57 minutes ago
Tuesday, June 01, 2010 10:41:04 AM GMT Monday, May 31, 2010 2:59:59 PM GMT
Monday, May 31, 2010 9:35 PM mehfuzh Mocking successive calls of similar type via sequential mocking 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.publicclassPerson{publicvirtualstring Name { get; set; }publicvirtualint Age { get; set; }} publicinterfaceIDataBase{    T Get (more)
category: Agile | clicked: 1 | comment | | source: weblogs.asp.net
tags: JustMock;C#
6
Shouts

Is your test method self-validating ? - Mehfuz's WebLog

published 1091 days, 6 hours, 17 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 1092 days, 30 minutes ago
Monday, May 24, 2010 12:40:04 PM GMT Sunday, May 23, 2010 6:26:55 PM GMT
Sunday, May 23, 2010 5:17 PM mehfuzh Is your test method self-validating ? 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 changes and thus breaking them to the furthest unit as possible.  This also means, we should avoid  multiple conditions embedded in a ... (more)
category: Agile | clicked: 0 | comment | | source: weblogs.asp.net
tags: C#, JustMock
7
Shouts

Working with multiple interfaces on a single mock. - Mehfuz's WebLog

published 1117 days, 11 hours, 57 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 1118 days, 23 hours, 57 minutes ago
Wednesday, April 28, 2010 7:00:19 AM GMT Monday, April 26, 2010 7:00:12 PM GMT
Monday, April 26, 2010 10:35 PM mehfuzh Working with multiple interfaces on a single mock. 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: publicinterfaceIFoo : IDisposable{void Do();} Our target interface has an IDisposable implemented. Now, generally if we implement it in a class , we have to implement the whole of ... (more)
category: Agile | clicked: 1 | comment | | source: weblogs.asp.net
tags: Telerik, JustMock
7
Shouts

Doing your first mock with JustMock - Mehfuz's WebLog

published 1130 days, 7 hours, 23 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 1132 days, 1 hour, 23 minutes ago
Thursday, April 15, 2010 11:34:26 AM GMT Tuesday, April 13, 2010 5:33:40 PM GMT
Tuesday, April 13, 2010 10:43 PM mehfuzh Doing your first mock with JustMock 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:publicinterfaceICurrencyService{float GetConversionRate(string fromCurrency, string toCurrency);} Moving forward the SUT or class that will be consuming the... (more)
category: Agile | clicked: 0 | comment | | source: weblogs.asp.net
tags: JustMock;C#;
6
Shouts

JustMock is here !! - Mehfuz's WebLog

published 1132 days, 5 hours, 43 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 1133 days, 3 hours, 17 minutes ago
Tuesday, April 13, 2010 1:13:56 PM GMT Monday, April 12, 2010 3:40:07 PM GMT
Monday, April 12, 2010 10:18 PM mehfuzh JustMock is here !! 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 on it. It actually depends on your feedback. To add few, with JustMock we tried to build a mocking tool with simple and intuitive syntax a... (more)
category: Agile | clicked: 0 | comment | | source: weblogs.asp.net
tags: JustMock;C#;
5
Shouts

Creating a basic proxy for intercepting [quick update]. - Mehfuz's WebLog

published 1175 days, 6 hours, 18 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 1176 days, 1 hour, 44 minutes ago
Monday, March 01, 2010 12:39:12 PM GMT Sunday, February 28, 2010 5:13:15 PM GMT
Sunday, February 28, 2010 8:28 PM mehfuzh Creating a basic proxy for intercepting [quick update]. In my previous post, i enhanced the proxy to support generic calls. In order to minimize IL emit and move more parts to managed code, there is a better way to process the return value rather doing the checks against runtime method and see whether the method’s return type is a value or not for generic calls to un-box the object form that is returned from the in... (more)
category: Agile | clicked: 0 | comment | | source: weblogs.asp.net
tags: C#, MSIL
6
Shouts

A basic proxy for intercepting method calls (Part – 3) - Mehfuz's WebLog

published 1181 days, 12 hours, 57 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 1182 days, 20 hours, 57 minutes ago
Tuesday, February 23, 2010 6:00:03 AM GMT Sunday, February 21, 2010 10:00:31 PM GMT
Monday, February 22, 2010 3:37 AM mehfuzh A basic proxy for intercepting method calls (Part – 3) In my previous posts, I showed how to create a proxy that can delegate calls. I further modified it to support argument list from original method and handled scenarios for void and non-void calls. In this post, i will further enhance it to introduce generic calls. Basically proxy overrides the virtual or interface calls dynamically and to consider generic meth... (more)
category: Agile | clicked: 0 | comment | | source: weblogs.asp.net
tags: C#, MSIL
11
Shouts

A basic proxy for intercepting method calls (Part –2) - Mehfuz's WebLog

published 1210 days, 6 hours, 45 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 1212 days, 10 hours, 48 minutes ago
Monday, January 25, 2010 12:11:40 PM GMT Saturday, January 23, 2010 8:08:53 AM GMT
Saturday, January 23, 2010 2:04 PM mehfuzh A basic proxy for intercepting method calls (Part –2) In my previous post , i introduced a basic proxy that intercepts methods. But what is missing in the proxy is that it does not consider method arguments and can not handle return types. In this post, i will enhance the proxy to support exactly those. First of all, i modified the IIntercept.Intercept() to accept IInvocaiton interface. The interface is pretty si... (more)
category: Agile | clicked: 1 | comment | | source: weblogs.asp.net
tags: C#, MSIL
6
Shouts

A basic proxy for intercepting method calls (Part –1) - Mehfuz's WebLog

published 1231 days, 5 hours, 39 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 1232 days, 1 hour, 18 minutes ago
Monday, January 04, 2010 1:17:35 PM GMT Sunday, January 03, 2010 5:39:10 PM GMT
Sunday, January 03, 2010 11:29 PM mehfuzh A basic proxy for intercepting method calls (Part –1) In this post i am going to show how you can write your own proxy for delegating calls. This just shows a way how you can handle it on your own but for complex interceptions its always wise to use alpha/beta/tested solutions. The post is more of an under the hood / aims to solve simple interception tasks where you might not need a full featured dynamic proxy or b... (more)
category: Agile | clicked: 0 | 1 comment | | source: weblogs.asp.net
tags: MSIL, C
6
Shouts

Do you Encode your interface ? - Mehfuz's WebLog

posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 1259 days, 11 hours, 37 minutes ago
Monday, December 07, 2009 7:20:27 AM GMT
Monday, December 07, 2009 1:14 PM mehfuzh Do you Encode your interface ? 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 that will be implemented by concrete classes. “What should you name them? IShapeFactory and ShapeFactory? I prefer to leave ... (more)
category: Agile | clicked: 0 | comment | | source: weblogs.asp.net