Example #1
0
        public TentFeedRequest(
            IUserLogic userLogic,
            ITentRequestPostFactory requestPostFactory,
            ITentRequestDateFactory requestDateFactory,  
            IQueryStringHelpers queryStringHelpers)
        {
            Ensure.Argument.IsNotNull(userLogic, nameof(userLogic));
            Ensure.Argument.IsNotNull(requestPostFactory, nameof(requestPostFactory));
            Ensure.Argument.IsNotNull(requestDateFactory, nameof(requestDateFactory));
            Ensure.Argument.IsNotNull(queryStringHelpers, nameof(queryStringHelpers));

            this.userLogic = userLogic;
            this.requestPostFactory = requestPostFactory;
            this.requestDateFactory = requestDateFactory;
            this.queryStringHelpers = queryStringHelpers;

            this.resolveDependenciesRunner = new TaskRunner(this.ResolveDependenciesAsync);
        }
Example #2
0
        public TentFeedRequestFactory(
            IUserLogic userLogic,
            ITentRequestDateFactory requestDateFactory,
            ITentRequestPostFactory requestPostFactory,
            IUriHelpers uriHelpers,
            IQueryStringHelpers queryStringHelpers,
            ITentPostTypeFactory postTypeFactory,
            IGeneralConfiguration configuration)
        {
            Ensure.Argument.IsNotNull(uriHelpers, nameof(uriHelpers));
            Ensure.Argument.IsNotNull(requestPostFactory, nameof(requestPostFactory));
            Ensure.Argument.IsNotNull(requestDateFactory, nameof(requestDateFactory));
            Ensure.Argument.IsNotNull(postTypeFactory, nameof(postTypeFactory));
            Ensure.Argument.IsNotNull(configuration, nameof(configuration));

            this.userLogic = userLogic;
            this.requestPostFactory = requestPostFactory;
            this.requestDateFactory = requestDateFactory;
            this.postTypeFactory = postTypeFactory;
            this.uriHelpers = uriHelpers;
            this.queryStringHelpers = queryStringHelpers;
            this.configuration = configuration;
        }
Example #3
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;
        }