Beispiel #1
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;
        }
Beispiel #2
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;
        }
Beispiel #3
0
 public TentPostTypeConverter(ITentPostTypeFactory postTypeFactory)
 {
     Ensure.Argument.IsNotNull(postTypeFactory, nameof(postTypeFactory));
     this.postTypeFactory = postTypeFactory;
 }