Browse by Tags

All Tags » Lambda Expression (RSS)

BDD with Specflow, Moq and Microsoft Unit Testing framework by thangchung

BDD (Behavior Driven Development) is very popular in these days. I know a lot of companies used BDD in our projects. So I also had some curios about it and I applied for my current project. I used Specflow , Moq and Microsoft Testing framework for working...

DRY with Lambda Expression (errors management) by thangchung

In my current project, I have made a miracle with Lambda Expression. Have you ever implemented something like this: public abstract class GenericRepository <TEntity> : IRepository <TEntity> where TEntity : class , IEntity { private readonly...

DateTime formatting extension method by thangchung

Notes: I also updated the pieces of code at http://www.extensionmethod.net/Details.aspx?ID=393 In current project, I get some troubles in DateTime class, about format the date time object with the pattern specific string and the current culture , so I...

Google API for .NET architecture (Part 2) by thangchung

Part 1: Google API for .NET architecture (Part 1) Today is Harvey Nash - 10 years in Viet Nam celebration day. I very happy about that, and I also drunk some beer, so I have been eager to write this post. In last post, I had been analyze about Domain...

Google API for .NET architecture (Part 1) by thangchung

Part 2: Google API for .NET architecture (Part 2) Today, I have just released a OSS with named is Gapi4net library at codeplex. This is a wrapper some of API's Google for search Web , Local , Video , Blog , News , Book , Image , Patent and language translation...

Breaking if statements with pattern by thangchung

Notes: updated with comment from Sean Stapleton I re-coded SearchCategoryCriteriaType enum type as: [ Flags ] public enum SearchCategoryCriteriaType : int { None = 0, Id = 1, Name = 2, CreatedUser = 4, CreatedDate = 8, All = Id | Name | CreatedUser |...
More Posts