Пример #1
0
        public UserGroupMembershipDetailsViewModel(UserGroupMembership userGroupMembership, IList <UserGroupMembership> userGroupMembers, UserGroupMembershipOptions userGroupMembershipOptions, IPage <Core.Domain.Peanuts.Peanut> peanuts)
        {
            Require.NotNull(userGroupMembership, "userGroupMembership");
            Require.NotNull(userGroupMembers, "userGroupMembers");
            Require.NotNull(userGroupMembershipOptions, "userGroupMembershipOptions");

            UserGroupMembership        = userGroupMembership;
            UserGroupMembers           = userGroupMembers;
            UserGroupMembershipOptions = userGroupMembershipOptions;
            Peanuts = peanuts;
        }
        public UserGroupMembershipStatisticsViewModel(UserGroupMembership userGroupMembership, IList <UserGroupMembership> userGroupMembers, UserGroupMembershipOptions userGroupMembershipOptions, PeanutsUserGroupMembershipStatistics statistics, IDictionary <UserGroupMembership, int> karmas)
        {
            Require.NotNull(userGroupMembership, "userGroupMembership");
            Require.NotNull(userGroupMembers, "userGroupMembers");
            Require.NotNull(userGroupMembershipOptions, "userGroupMembershipOptions");
            Require.NotNull(karmas, "karmas");

            UserGroupMembership        = userGroupMembership;
            UserGroupMembers           = userGroupMembers;
            UserGroupMembershipOptions = userGroupMembershipOptions;
            Statistics = statistics;

            Karmas = karmas;
        }