• 點部落
  • 首頁
  • RSS
    • 登入

Ju's coding note

藉由寫blog的過程,將所學到的東西與想法,重新組織與檢視

2019-01-10

.NET core: 在TestServer整合測試中取得注入的Service

  • 146
  • 0
  • Testing

在.NET core利用TestServer來整合測試時如何取得注入的服務, 以EFCore DbContext為例

...繼續閱讀 »
  • C#
  • .Net Core
2019-01-06

golang: 字串串接 strings.Builder vs bytes.Buffer vs +

  • 1035
  • 0
  • golang

在golang原本都利用bytes.Buffer與+來做字串串接, 發現有strings.Builder這個東西,紀錄一下測試結果

...繼續閱讀 »
  • golang
2019-01-03

golang: 轉型成interface時顯示錯誤typeA does not implement interfaceA(Call method has pointer receiver)

  • 996
  • 0
  • golang

constructor回傳value而非pointer時,轉型成interface時顯示錯誤typeA does not implement interfaceA(Call method has pointer receiver)

...繼續閱讀 »
  • golang
2018-03-15

利用FluentAssertions做部分比對或排除特定欄位比對

  • 660
  • 0
  • Testing

以往遇到寫測試需要部份比對物件的欄位資料,都是額外安裝91哥推薦的 Expected Objects,
https://dotblogs.com.tw/hatelove/2016/03/28/compare-object-equality-with-expected-objects

不過這陣子看文件意外發現FluentAssertions本身也有支援,這篇文章來演練一下FluentAssertion的物件部分比對功能

...繼續閱讀 »
  • FluentAssertions
  • Unit Test
2018-02-20

mock參數為Expression/Linq的方法

  • 108
  • 0
  • 隨手筆記

在單元測試裡mock Expression參數,不算少見,只是寫了之後下次遇到又忘了,今天就這樣卡了半小時,乾脆寫下來。

...繼續閱讀 »
  • C#
  • Mock
  • Test
2018-01-29

GUID在C# code和MongoDB GUI裡面顯示的值不同

  • 610
  • 0
  • MongoDB in .Net

遭遇GUID在C# code和MongoDB GUI裡面顯示的值不同,這是怎麼回事呢?

...繼續閱讀 »
  • MongoDB
  • C#
  • GUID
2017-12-20

Chain of Resposibility 責任鍊模式

  • 74
  • 0
  • Design Pattern
  • 2018-01-29

實作責任鍊模式

...繼續閱讀 »
  • design pattern
  • 決戰設計模式
2017-12-11

將靜態create-react-app app從Github自動部署到Azure

  • 376
  • 0
  • ReactJS

將靜態create-react-app app從Github自動部署到Azure(Automatic deploying static create-react-app from Github to Azure)

...繼續閱讀 »
  • Azure
  • React
  • create-react-app
  • Github
  • 1

標籤雲

系列文章

  • 服務規範
  • 聯絡我們
© 2025 點部落 Ver. 1.0.0.0
電魔小鋪有限公司 製作、維運;登豐數位科技 提供資安檢測