Exemplo n.º 1
0
        public static async Task Main(string[] args)
        {
            _userInformationService    = new UserInformationService();
            _postInformationService    = new PostInformationService();
            _displayInformationService = new DisplayInformationService(_userInformationService, _postInformationService);
            System.Console.WriteLine("Hello World!");
            // var userIdInline = args[0];
            var userIdInline = "1";

            try
            {
                int userId = int.Parse(userIdInline);
                await Handle(userId);
            }
            catch
            {
                System.Console.Error.WriteLine("You should enter a valid userId");
            }
        }
 public DisplayInformationService(IUserInformationService userInformationService,
                                  IPostInformationService postInformationService)
 {
     _userInformationService = userInformationService;
     _postInformationService = postInformationService;
 }