This PR replaces the current constructors in paginators/selections with constructors with a single parameter. This parameter contains all the properties of their related builder that are required to build an immutable paginator/selection.
Additions
New interface IInteractiveBuilderProperties. It contains the properties of an IInteractiveBuilder.
New interface IInteractiveBuilderMethods. It provides a fluent interface for IInteractiveBuilder.
New class PaginatorBuilderProperties. It contains the properties of a PaginatorBuilder.
New class BaseSelectionBuilderProperties. It contains the properties of a BaseSelectionBuilder.
Changes
Split IInteractiveBuilder into IInteractiveBuilderProperties and IInteractiveBuilderMethods.
Moved the properties of PaginatorBuilder to PaginatorBuilderProperties.
Moved the properties of BaseSelectionBuilder to BaseSelectionBuilderProperties.
Modified the constructors of Paginator and BaseSelection to use PaginatorBuilderProperties and BaseSelectionBuilderProperties instead.
Changed the type of PaginatorBuilder.Users and BaseSelectionBuilder.Users to ICollection<T>
Moved the startPageIndex parameter in PaginatoBuilder.Build() to a separate property.
This PR replaces the current constructors in paginators/selections with constructors with a single parameter. This parameter contains all the properties of their related builder that are required to build an immutable paginator/selection.
Additions
IInteractiveBuilderProperties
. It contains the properties of anIInteractiveBuilder
.IInteractiveBuilderMethods
. It provides a fluent interface forIInteractiveBuilder
.PaginatorBuilderProperties
. It contains the properties of aPaginatorBuilder
.BaseSelectionBuilderProperties
. It contains the properties of aBaseSelectionBuilder
.Changes
IInteractiveBuilder
intoIInteractiveBuilderProperties
andIInteractiveBuilderMethods
.PaginatorBuilder
toPaginatorBuilderProperties
.BaseSelectionBuilder
toBaseSelectionBuilderProperties
.Paginator
andBaseSelection
to usePaginatorBuilderProperties
andBaseSelectionBuilderProperties
instead.PaginatorBuilder.Users
andBaseSelectionBuilder.Users
toICollection<T>
startPageIndex
parameter inPaginatoBuilder.Build()
to a separate property.