-
Notifications
You must be signed in to change notification settings - Fork 1
/
GoldSimTopicViewModelLookupService.cs
95 lines (84 loc) · 5.03 KB
/
GoldSimTopicViewModelLookupService.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*==============================================================================================================================
| Author Ignia, LLC
| Client Goldsim
| Project Website
\=============================================================================================================================*/
using GoldSim.Web.Administration.Models.Invoices;
using GoldSim.Web.Administration.Models.Licenses;
using GoldSim.Web.Courses.Models;
using GoldSim.Web.Forms.Models;
using GoldSim.Web.Models.ContentTypes;
using GoldSim.Web.Models.ContentTypes.ContentItems;
using GoldSim.Web.Payments.Models;
using OnTopic.Lookup;
namespace GoldSim.Web {
/*============================================================================================================================
| CLASS: GOLDSIM TOPIC VIEW MODEL LOOKUP SERVICE
\---------------------------------------------------------------------------------------------------------------------------*/
/// <summary>
/// Provides a mapping between string and class names to be used when mapping <see cref="Topic"/> to a <see
/// cref="TopicViewModel"/> or derived class.
/// </summary>
public class GoldSimTopicViewModelLookupService : StaticTypeLookupService {
/*==========================================================================================================================
| CONSTRUCTOR
\-------------------------------------------------------------------------------------------------------------------------*/
/// <summary>
/// Instantiates a new instance of the <see cref="GoldSimViewModelLookupService"/>.
/// </summary>
/// <returns>A new instance of the <see cref="GoldSimViewModelLookupService"/>.</returns>
internal GoldSimTopicViewModelLookupService() : base() {
/*------------------------------------------------------------------------------------------------------------------------
| Add content type view models
\-----------------------------------------------------------------------------------------------------------------------*/
Add(typeof(ApplicationBasePageTopicViewModel));
Add(typeof(ApplicationContainerTopicViewModel));
Add(typeof(ApplicationIndexTopicViewModel));
Add(typeof(ApplicationPageTopicViewModel));
Add(typeof(EmailTopicViewModel));
Add(typeof(ExampleApplicationTopicViewModel));
Add(typeof(ExampleIndexTopicViewModel));
Add(typeof(FaqTopicViewModel));
Add(typeof(FollowupTopicViewModel));
Add(typeof(GlossaryTopicViewModel));
Add(typeof(HomeTopicViewModel));
Add(typeof(ModulePageTopicViewModel));
Add(typeof(PaymentsTopicViewModel));
Add(typeof(SearchTopicViewModel));
Add(typeof(TechnicalPaperListTopicViewModel));
Add(typeof(WhitePaperListTopicViewModel));
/*------------------------------------------------------------------------------------------------------------------------
| Add content item view models
\-----------------------------------------------------------------------------------------------------------------------*/
Add(typeof(FaqItemTopicViewModel));
Add(typeof(GlossaryItemTopicViewModel));
Add(typeof(TechnicalPaperTopicViewModel));
Add(typeof(WhitePaperTopicViewModel));
/*------------------------------------------------------------------------------------------------------------------------
| Add courseware specific view models
\-----------------------------------------------------------------------------------------------------------------------*/
Add(typeof(CourseListTopicViewModel));
Add(typeof(CourseTopicViewModel));
Add(typeof(UnitTopicViewModel));
Add(typeof(LessonTopicViewModel));
/*------------------------------------------------------------------------------------------------------------------------
| Form models
\-----------------------------------------------------------------------------------------------------------------------*/
Add(typeof(FormPageTopicViewModel));
Add(typeof(TrialFormTopicViewModel));
Add(typeof(InstructorAcademicFormTopicViewModel));
Add(typeof(StudentAcademicFormTopicViewModel));
Add(typeof(PaymentFormBindingModel));
/*------------------------------------------------------------------------------------------------------------------------
| License administration
\-----------------------------------------------------------------------------------------------------------------------*/
Add(typeof(InvoiceTopicViewModel));
Add(typeof(LicenseAdministrationTopicViewModel));
Add(typeof(LicenseRequestTopicViewModel));
/*------------------------------------------------------------------------------------------------------------------------
| Override Ignia view models
\-----------------------------------------------------------------------------------------------------------------------*/
AddOrReplace(typeof(Models.NavigationTopicViewModel));
}
} //Class
} //Namespace