示例#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();
     //}
 }
 public ProfileController(IUserLogic userLogic, IPostLogic postLogic, IFriendRequestLogic friendRequestLogic, IProfilePictureLogic profilePictureLogic)
 {
     _userLogic           = userLogic;
     _postLogic           = postLogic;
     _friendRequestLogic  = friendRequestLogic;
     _profilePictureLogic = profilePictureLogic;
 }
示例#4
0
        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;
 }
 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;
 }