コード例 #1
0
        public void WithSettings_ShouldSetSettings()
        {
            // Arrange
            var reportRequestBuilder = new ReportRequestBuilder();
            var settings = new RankedSettings();

            // Act
            var result = reportRequestBuilder
                .WithSettings(settings)
                .Build();

            // Assert
            Assert.That(result.Settings, Is.EqualTo(settings));
        }
コード例 #2
0
        public ReportRequestBuilder WithSettings(RankedSettings settings)
        {
            Settings = settings;

            return(this);
        }