Exemple #1
0
        public static void ShouldSortGroups(List <OrgGroup> groups,
                                            OrgGroupService.SortedBy sortedBy,
                                            bool expected)
        {
            var sortedGroups = OrgGroupService.SortOrgGroupByHierarchy(groups, sortedBy).ToList();

            OrgGroupService.IsOrgGroupSortedByHierarchy(sortedGroups, sortedBy).ShouldBe(true,
                                                                                         "should have been sorted by " + sortedBy + " but instead was " +
                                                                                         string.Join(", ", sortedGroups.Select(group => group.GroupName)));
        }
Exemple #2
0
 public static void ShouldValidateOrderOfOrgGroups(List <OrgGroup> groups,
                                                   OrgGroupService.SortedBy sortedBy,
                                                   bool expected)
 {
     OrgGroupService.IsOrgGroupSortedByHierarchy(groups, sortedBy).ShouldBe(expected);
 }