Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
feat (Configuration) mark members of configuration manager as virtual…
Browse files Browse the repository at this point in the history
… so derived class can override them

For instance, to load configuration values from a place other than the default files.
  • Loading branch information
Nicholas-Westby committed May 9, 2020
1 parent d46a103 commit e20d758
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/formulate.app/Managers/DefaultConfigurationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal class DefaultConfigurationManager : IConfigurationManager
/// <summary>
/// The base path to store JSON in.
/// </summary>
public string JsonBasePath
public virtual string JsonBasePath
{
get
{
Expand All @@ -38,7 +38,7 @@ public string JsonBasePath
/// <summary>
/// The base path toe store submitted files in.
/// </summary>
public string FileStoreBasePath
public virtual string FileStoreBasePath
{
get
{
Expand All @@ -54,7 +54,7 @@ public string FileStoreBasePath
/// <summary>
/// The templates used to render forms.
/// </summary>
public IEnumerable<Template> Templates
public virtual IEnumerable<Template> Templates
{
get
{
Expand All @@ -74,7 +74,7 @@ public IEnumerable<Template> Templates
/// <summary>
/// The button kinds used when creating button field types.
/// </summary>
public IEnumerable<string> ButtonKinds
public virtual IEnumerable<string> ButtonKinds
{
get
{
Expand All @@ -89,7 +89,7 @@ public IEnumerable<string> ButtonKinds
/// <summary>
/// Enable server side validation of form submissions?
/// </summary>
public bool EnableServerSideValidation
public virtual bool EnableServerSideValidation
{
get
{
Expand All @@ -105,7 +105,7 @@ public bool EnableServerSideValidation
/// <summary>
/// Is the email whitelist enabled?
/// </summary>
public bool EnableEmailWhitelist
public virtual bool EnableEmailWhitelist
{
get
{
Expand All @@ -120,7 +120,7 @@ public bool EnableEmailWhitelist
/// <summary>
/// The emails to whitelist.
/// </summary>
public IEnumerable<AllowEmail> EmailWhitelist
public virtual IEnumerable<AllowEmail> EmailWhitelist
{
get
{
Expand All @@ -139,7 +139,7 @@ public IEnumerable<AllowEmail> EmailWhitelist
/// <summary>
/// The emails to blacklist.
/// </summary>
public IEnumerable<DisallowEmail> EmailBlacklist
public virtual IEnumerable<DisallowEmail> EmailBlacklist
{
get
{
Expand All @@ -157,7 +157,7 @@ public IEnumerable<DisallowEmail> EmailBlacklist
/// <summary>
/// The headers to use for emails.
/// </summary>
public IEnumerable<EmailHeader> EmailHeaders
public virtual IEnumerable<EmailHeader> EmailHeaders
{
get
{
Expand All @@ -179,7 +179,7 @@ public IEnumerable<EmailHeader> EmailHeaders
/// <summary>
/// The field categories
/// </summary>
public IEnumerable<FieldCategory> FieldCategories
public virtual IEnumerable<FieldCategory> FieldCategories
{
get
{
Expand Down

0 comments on commit e20d758

Please sign in to comment.