示例#1
0
        public void TestGetName(string expected, string title)
        {
            var nameService = new NameService();
            var result      = nameService.GetName(title);

            Assert.Equal(expected, result);
        }
示例#2
0
        public static void Main(string[] args)
        {
            INameService nameService = new NameService();

            Console.Write(nameService.GetName());

            Console.ReadKey();
        }