示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AppVeyorPullRequestSystem"/> class.
        /// </summary>
        /// <param name="context">The Cake context.</param>
        /// <param name="settings">Settings for writting issues to AppVeyor.</param>
        public AppVeyorPullRequestSystem(ICakeContext context, AppVeyorBuildSettings settings)
            : base(context?.Log)
        {
            settings.NotNull(nameof(settings));

            this.context  = context;
            this.settings = settings;
        }
示例#2
0
        public static IPullRequestSystem AppVeyorBuilds(
            this ICakeContext context,
            AppVeyorBuildSettings settings)
        {
            context.NotNull(nameof(context));
            settings.NotNull(nameof(settings));

            return(new AppVeyorPullRequestSystem(context, settings));
        }