Exemple #1
0
        public BirthdaysController(IFriendListService friendList, IPrincipal identity)
        {
            Guard.WhenArgument(friendList, "friendListService").IsNull().Throw();
            Guard.WhenArgument(identity, "principalService").IsNull().Throw();

            this.friendList = friendList;
            this.identity   = identity;
        }
Exemple #2
0
        public AdministrationController(IGroupService groups, IFriendListService friendLists,
                                        IUserService users)
        {
            Guard.WhenArgument(groups, "Group service cannot be null!").IsNull().Throw();
            Guard.WhenArgument(friendLists, "FriendsLists service cannot be null!").IsNull().Throw();
            Guard.WhenArgument(users, "Users service cannot be null!").IsNull().Throw();

            this.groups      = groups;
            this.friendLists = friendLists;
            this.users       = users;
        }
Exemple #3
0
 public FriendListController(ITokenService tokenService, IFriendListService friendService)
 {
     _friendService = friendService;
 }
 public AccountController(ITokenService tokenService, IFriendListService friendService, IUserService userService)
 {
     _tokenService = tokenService;
     _userService  = userService;
 }