Last active
August 12, 2016 06:31
-
-
Save nuitsjp/63447e43339245a5ebee8396ab4b01f1 to your computer and use it in GitHub Desktop.
コラム01:PrismとDIコンテナ 01.密結合
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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