示例#1
0
 public UnitOfWork(DatabaseContext context,
                   IUsersRepository users,
                   IInvitationsRepository invitations,
                   IFriendshipsRepository friendships,
                   IInformationsRepository informations,
                   IQuizzesRepository quizes,
                   IQuizQuestionsRepository quizQuestions,
                   IQuizAnswersRepository quizAnswers,
                   IQuizScoresRepository quizScores,
                   IFilesRepository files,
                   IFilmWatchingsRepository filmWatchings,
                   IFilmsRepository films,
                   IFilmPeopleRepository filmPeople,
                   IPersonMarksRepository personMarks,
                   IInformationCommentsRepository informationComments,
                   IForumThreadsRepository forumThreads,
                   IForumThreadCommentsRepository forumThreadComments,
                   IMessagesRepository messages,
                   ISignalRConnectionsRepository signalRConnections,
                   IMessagesReadingsRepository messagesReadings,
                   IConversationsRepository conversations,
                   IInvitationNotificationsRepository invitationNotifications,
                   INotificationsReadingsRepository notificationsReadings,
                   IPeopleInRolesRepository peopleInRoles)
 {
     Context                 = context;
     Users                   = users;
     Friendships             = friendships;
     Invitations             = invitations;
     Informations            = informations;
     Quizzes                 = quizes;
     QuizQuestions           = quizQuestions;
     QuizAnswers             = quizAnswers;
     QuizScores              = quizScores;
     Files                   = files;
     FilmWatchings           = filmWatchings;
     Films                   = films;
     FilmPeople              = filmPeople;
     PersonMarks             = personMarks;
     InformationComments     = informationComments;
     ForumThreads            = forumThreads;
     ForumThreadComments     = forumThreadComments;
     Messages                = messages;
     SignalRConnections      = signalRConnections;
     MessagesReadings        = messagesReadings;
     Conversations           = conversations;
     InvitationNotifications = invitationNotifications;
     NotificationsReadings   = notificationsReadings;
     PeopleInRoles           = peopleInRoles;
 }
 public FriendshipsController(DatabaseContext context)
 {
     this._friendshipsRepository = new FriendshipsRepository(context);
     this._usersRepository       = new UsersRepository(context);
 }