コード例 #1
0
 public HomeController(IUserLogic userLogic, IFriendRequestLogic friendRequestLogic, IPostLogic postLogic, ICommentLogic commentLogic)
 {
     _userLogic          = userLogic;
     _friendRequestLogic = friendRequestLogic;
     _postLogic          = postLogic;
     _commentLogic       = commentLogic;
 }
コード例 #2
0
 PostController()
 {
     //if (this.postlogic != null)
     //{
     this.postlogic = new PostLogic();
     //}
 }
コード例 #3
0
 public ProfileController(IUserLogic userLogic, IPostLogic postLogic, IFriendRequestLogic friendRequestLogic, IProfilePictureLogic profilePictureLogic)
 {
     _userLogic           = userLogic;
     _postLogic           = postLogic;
     _friendRequestLogic  = friendRequestLogic;
     _profilePictureLogic = profilePictureLogic;
 }
コード例 #4
0
ファイル: FollowLogic.cs プロジェクト: Campr/Server
        public FollowLogic(IPostLogic postLogic,
            ITentPostFactory postFactory,
            ITentPostTypeFactory postTypeFactory,
            ITentRequestPostFactory requestPostFactory,
            ITentClientFactory tentClientFactory,
            ITentHawkSignatureFactory hawkSignatureFactory,
            ITentConstants tentConstants)
        {
            Ensure.Argument.IsNotNull(postLogic, nameof(postLogic));
            Ensure.Argument.IsNotNull(postFactory, nameof(postFactory));
            Ensure.Argument.IsNotNull(postTypeFactory, nameof(postTypeFactory));
            Ensure.Argument.IsNotNull(requestPostFactory, nameof(requestPostFactory));
            Ensure.Argument.IsNotNull(tentClientFactory, nameof(tentClientFactory));
            Ensure.Argument.IsNotNull(hawkSignatureFactory, nameof(hawkSignatureFactory));
            Ensure.Argument.IsNotNull(tentConstants, nameof(tentConstants));

            this.postLogic = postLogic;
            this.postFactory = postFactory;
            this.postTypeFactory = postTypeFactory;
            this.requestPostFactory = requestPostFactory;
            this.tentClientFactory = tentClientFactory;
            this.hawkSignatureFactory = hawkSignatureFactory;
            this.tentConstants = tentConstants;
        }
コード例 #5
0
 public PostController(IPostLogic postLogic)
 {
     _postLogic = postLogic;
 }
コード例 #6
0
 public PostService(IPostLogic postLogic) : base(postLogic)
 {
     _postLogic = postLogic;
 }
コード例 #7
0
 public PostController(IPostLogic HotelLogic)
 {
     this.PostLogic = HotelLogic;
 }
コード例 #8
0
 PostController(IPostLogic postlogic)
 {
     this.postlogic = postlogic;
 }
コード例 #9
0
 public PostController(ConestogaCarpoolContext context, IPostLogic postLogic)
 {
     _context   = context;
     _postLogic = postLogic;
 }
コード例 #10
0
 public AccountController(IAccountLogic accountLogic, UserManager <IdentityUser> userManager, IPostLogic postLogic)
 {
     this.accountLogic = accountLogic;
     this.userManager  = userManager;
     this.postLogic    = postLogic;
 }
コード例 #11
0
 public PostController(IPostLogic postLogic, IMediaLogic mediaLogic)
 {
     _postLogic  = postLogic;
     _mediaLogic = mediaLogic;
 }
コード例 #12
0
 public SearchController(IUserLogic userLogic, IPostLogic postLogic, IProfilePictureLogic profilePictureLogic)
 {
     _userLogic           = userLogic;
     _postLogic           = postLogic;
     _profilePictureLogic = profilePictureLogic;
 }
コード例 #13
0
 public PostController(IPostLogic postLogic, UserManager <IdentityUser> userManager, PostContext postContext)
 {
     this.postLogic   = postLogic;
     this.userManager = userManager;
     this.postContext = postContext;
 }
コード例 #14
0
 public LogicTests()
 {
     postLogic          = new PostLogic(new PostRepository(new PostContext(new Connection(@"Data Source=mssql.fhict.local;Initial Catalog=dbi404906_ocial;User ID=dbi404906_ocial;Password=123"))));
     userLogic          = new UserLogic(new UserRepository(new UserContext(new Connection(@"Data Source=mssql.fhict.local;Initial Catalog=dbi404906_ocial;User ID=dbi404906_ocial;Password=123"))));
     friendRequestLogic = new FriendRequestLogic(new FriendRequestRepository(new FriendRequestContext(new Connection(@"Data Source=mssql.fhict.local;Initial Catalog=dbi404906_ocial;User ID=dbi404906_ocial;Password=123"))));
 }
コード例 #15
0
 public SubmissionController(IPostLogic postLogic, UserManager <IdentityUser> userManager)
 {
     this.postLogic   = postLogic;
     this.userManager = userManager;
 }