Exemple #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);
        }
        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;
        }