Skip to content

Instantly share code, notes, and snippets.

@nuitsjp
Last active August 12, 2016 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nuitsjp/63447e43339245a5ebee8396ab4b01f1 to your computer and use it in GitHub Desktop.
Save nuitsjp/63447e43339245a5ebee8396ab4b01f1 to your computer and use it in GitHub Desktop.
コラム01:PrismとDIコンテナ 01.密結合
public class HatPepper
{
public IList<Shop> SearchShops()
{
GeolocationService geolocationService = new GeolocationService();
var location = geolocationService.GetCurrentLocation();
// 以降、取得した位置情報から周辺の店舗を取得して返却する
}
}
public class GeolocationService
{
public Location GetCurrentLocation()
{
// 現在の位置情報を返却する
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment