This commit is contained in:
20
server/AyaNova/DataList/DataListFactory.cs
Normal file
20
server/AyaNova/DataList/DataListFactory.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal static class DataListFactory
|
||||
{
|
||||
internal const string TEST_WIDGET_USER_EMAIL_ADDRESS_LIST_KEY = "TEST_WIDGET_USER_EMAIL_ADDRESS_LIST";//for development testing, not a real thing going forward
|
||||
|
||||
internal static IAyaDataList GetAyaDataList(string ListKey)
|
||||
{
|
||||
switch (ListKey)
|
||||
{
|
||||
case TEST_WIDGET_USER_EMAIL_ADDRESS_LIST_KEY:
|
||||
return new TestWidgetUserEmail();
|
||||
default:
|
||||
throw new System.ArgumentOutOfRangeException($"DataListFactory: Unknown key \"{ListKey}\"");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user