protected string GetTextLine(NameModel name)
        {
            if (name == null || (string.IsNullOrEmpty(name.FirstName)
                                 && string.IsNullOrEmpty(name.LastName)))
            {
                return string.Empty;
            }

            return name.ToString();
        }
        public void WriteSortedNamesToConsole_TakesNamesList()
        {
            //Arrange

            var name = new NameModel {FirstName = "Andrew", LastName = "KENT"};
            var names = new List<NameModel> {name};
            _target.Protected().Setup("Log", name.ToString()).Verifiable();

            //Act
            _target.Object.WriteSortedNamesToConsoleWrapper(names);

            //Assert
            _target.Verify();
        }