private static DistributionPeriod NewDistributionPeriod(Action <DistributionPeriodBuilder> setUp = null)
        {
            DistributionPeriodBuilder periodBuilder = new DistributionPeriodBuilder();

            setUp?.Invoke(periodBuilder);

            return(periodBuilder.Build());
        }
Example #2
0
        protected DistributionPeriod NewDistributionPeriod(Action <DistributionPeriodBuilder> setUp = null)
        {
            DistributionPeriodBuilder distributionPeriodBuilder = new DistributionPeriodBuilder();

            setUp?.Invoke(distributionPeriodBuilder);

            return(distributionPeriodBuilder.Build());
        }
Example #3
0
        private DistributionPeriod[] NewDistributionPeriods(Action <DistributionPeriodBuilder> setUp = null)
        {
            DistributionPeriodBuilder distributionPeriodBuilder = new DistributionPeriodBuilder();

            setUp?.Invoke(distributionPeriodBuilder);
            ProfilePeriod profilePeriodOne = NewProfilePeriod();
            ProfilePeriod profilePeriodTwo = NewProfilePeriod();

            distributionPeriodBuilder.WithProfilePeriods(profilePeriodOne,
                                                         profilePeriodTwo);
            distributionPeriodBuilder.WithValue(profilePeriodOne.ProfiledValue + profilePeriodTwo.ProfiledValue);

            return(new [] { distributionPeriodBuilder.Build() });
        }