Beispiel #1
0
		public WidgetServiceMemory(ISecurityContext securityContext)
		{
			_securityContext = ValidationUtil.CheckOnNullAndThrowIfNull(securityContext);
			_widgetsCollection = new WidgetsCollection();
		}
Beispiel #2
0
		public WidgetServiceSecurity(IWidgetsService widgetsService, ISecurityContext securityContext)
		{
			_widgetsService = ValidationUtil.CheckOnNullAndThrowIfNull(widgetsService);
			_securityContext = ValidationUtil.CheckOnNullAndThrowIfNull(securityContext);
			_widgetsCollection = new WidgetsCollection();
		}
Beispiel #3
0
		public WidgetService(IWidgetsRepository widgetsRepository, ISecurityContext securityContext)
		{
			_widgetsRepository = ValidationUtil.CheckOnNullAndThrowIfNull(widgetsRepository);
			_securityContext = ValidationUtil.CheckOnNullAndThrowIfNull(securityContext);
			_widgetsCollection = new WidgetsCollection();
		}