コード例 #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 PeopleBusiness(IPeopleRepository repository)
 {
     _repository = repository;
     _converter  = new PeopleConverter();
 }