In C#, If you need to unit test a class that fires an event in certain circumstances (perhaps even asynchronously), you need to handle a little more than just running some code and doing the assertion. You have to make sure your unit test waits for
發現一個好用的IBatis.Net產生工具,可以根據資料庫自動產生domain和xml檔案,名稱是MyGeneration。我試用了一下,效果不錯。詳細介紹參見它的首頁:http://www.mygenerationsoftware.com/portal/default.aspx支援的語言為:C#,vb.net支援的資料庫有:Microsoft SQL, Oracle, IBM DB2, PostgreSQL, Microsoft Access, FireBird,
今天正在讀Mobile Messaging Technologies and Services一書,其中闡述了3GPP文檔命名的原則。我把它翻譯成中文並整理一下作為一個小資料供查閱。更為精確的描述請參考Mobile Messaging Technologies and Services一書。3GPP規範:命名方案 每份3GPP技術文檔,技術報告(TR)或者技術規範(TR),都被一個Reference唯一標示。這個Reference以3GPP首碼開始,後跟兩個字元表示文檔的類型(TS為技術報告,
MSDN網路廣播首頁:http://msdn.microsoft.com/zh-cn/dd796167.aspxDAFOCUS:http://www.dafocus.com/encodix_sources.html加密狗:http://cn.safenet-inc.com/products/dog/dl.aspGoogleEarth COM API:http://earth.google.com/comapi/KML
最近一直在忙其它項目,Monorail和IBatis.Net系列很長時間沒有更新了,今天正好有朋友問到在IBatis.Net中調用預存程序的問題。其實調用方式比較簡單,主要也就是兩種類型的預存程序:1、更新類型的預存程序2、查詢類型的預存程序下面就來看看具體的調用方式:1、更新類型的預存程序sp_InsertAccount:CREATE PROCEDURE [dbo].[sp_InsertAccount] -- Add the parameters for the stored proce
I received a question regarding this poston WCF and what my handlers look like when a client disconnects (eitherbecause of a fault or the client connection is closed). It's fairlysimple. Here's the code used to hook up the events: IClientCallback