Пример #1
0
 internal UnitTestControlWrapper(
     ComponentControlWrapper component,
     IUnitTestTypeControl type,
     string systemName,
     GetOrCreateUnitTestControlData createData)
     : base(component, type, systemName)
 {
     if (createData == null)
     {
         throw new ArgumentNullException("createData");
     }
     CreateData       = createData;
     ControlActivator = new ControlActivator <IUnitTestControl>(CreateOnlineControlOrNull, CreateOfflineControl);
 }
Пример #2
0
        public override IUnitTestControl GetOrCreateUnitTestControl(GetOrCreateUnitTestData data)
        {
            lock (this)
            {
                var createData = new GetOrCreateUnitTestControlData(this, data);

                var wrapper = new UnitTestControlWrapper(
                    createData.Component,
                    createData.Data.UnitTestTypeControl,
                    createData.Data.SystemName,
                    createData);

                return(wrapper);
            }
        }