示例#1
0
        public string GiveToString_WhenOrderByDescendingFirstNameAndValue_ThenOutIsToStringOrderBy(string sessionName, string groupName)
        {
            //Arrange
            SessionsResultsView sessionsResultsView = new SessionsResultsView(Mock.Object);
            //Act
            var actual       = sessionsResultsView.GetView(sessionName, groupName).ToList().OrderByDescending(f => f.Name).ThenByDescending(v => v.Rating);
            var actualString = sessionsResultsView.ToString(actual);

            return(actualString);
        }
示例#2
0
        public string GiveToString_WhenNoOrdered_ThenOutIsToString(string sessionName, string groupName)
        {
            //Arrange
            SessionsResultsView sessionsResultsView = new SessionsResultsView(Mock.Object);
            //Act
            IEnumerable <SessionsResultsView> actual = sessionsResultsView.GetView(sessionName, groupName).ToList();
            var actualString = sessionsResultsView.ToString(actual);

            return(actualString);
        }