Exemple #1
0
        public void GetSerifsTest()
        {
            SerifsController serif = new SerifsController();
            Random           rand  = new Random();
            var serifDatas         = serif.GetSerifs().Where(e => e.Name == "里美").ToArray();

            var serifData = serifDatas[rand.Next(serifDatas.Length)];

            serifData.IsNotNull();

            Console.WriteLine(serifData.Id);
            Console.WriteLine(serifData.Text);
            Console.WriteLine(serifData.Type);
        }
Exemple #2
0
 private IEnumerable <SerifData> GetSerif(string name, SerifType type)
 {
     return(serifsController.GetSerifs().Where(e => e.Name == name).Where(e => e.Type == type));
 }