public void Execute_WhenUserDoesNotExist_ReturnNull()
        {
            var userServiceMock = new Mock<IUserService>();
            userServiceMock.Setup(x => x.GetUserByUserName(It.IsAny<string>()))
                .Returns<User>(null);

            var showTimeLineCommand = new ShowTimeLineCommand(userServiceMock.Object);

            var result = showTimeLineCommand.Execute("franta", null);

            Assert.IsNull(result);
        }
        public void Execute_WhenUserDoesNotExist_ReturnNull()
        {
            var userServiceMock = new Mock <IUserService>();

            userServiceMock.Setup(x => x.GetUserByUserName(It.IsAny <string>()))
            .Returns <User>(null);

            var showTimeLineCommand = new ShowTimeLineCommand(userServiceMock.Object);

            var result = showTimeLineCommand.Execute("franta", null);

            Assert.IsNull(result);
        }