public void SetUp() { pinyinRepository = new FakePinyinRepository(new Dictionary <string, string> { { "章", "zhang" }, { "子", "zi" }, { "怡", "yi" }, { "武", "wu" } }); pinyinService = new PinyinService(pinyinRepository); }
public PinyinService(IPinyinRepository pinyinRepository) { this.pinyinRepository = pinyinRepository; }