コード例 #1
0
        public async Task FetchJson_Convert_WriteOutput()
        {
            var logger    = new TestContextLogger();
            var reader    = new PeopleJsonReader(logger);
            var jsonModel = await reader.GetModel();

            Assert.IsNotNull(jsonModel);

            var converter = new PeopleConverter();
            var model     = converter.Convert(jsonModel);
            var writer    = new ConsoleOutputWriter(logger);

            writer.Write(model);
        }
コード例 #2
0
 public void NullPeople_ReturnsNull()
 {
     Assert.IsNull(_pc.Convert(null));
 }