public UnitTestControlOffline(
     IComponentControl component,
     IUnitTestTypeControl type,
     string systemName)
     : base(component, type, systemName)
 {
 }
Example #2
0
 public static void CheckUnitTestType(GetOrCreateUnitTestTypeData createData, IUnitTestTypeControl control)
 {
     Assert.False(control.IsFake());
     Assert.Equal(createData.SystemName, control.SystemName);
     Assert.Equal(createData.SystemName, control.Info.SystemName);
     Assert.Equal(createData.DisplayName, control.Info.DisplayName);
 }
Example #3
0
 public UnitTestControlOnline(IComponentControl component, IUnitTestTypeControl type, UnitTestInfo info)
     : base(component, type, info.SystemName)
 {
     if (info == null)
     {
         throw new ArgumentNullException("info");
     }
     InfoInternal = info;
 }
Example #4
0
        public GetOrCreateUnitTestResponse GetOrCreateUnitTest(IUnitTestTypeControl unitTestTypeControl, string systemName)
        {
            var createData = new GetOrCreateUnitTestData(systemName)
            {
                UnitTestTypeControl = unitTestTypeControl
            };

            return(GetOrCreateUnitTest(createData));
        }
Example #5
0
 public static void CheckUnitTestType(IUnitTestTypeControl a, IUnitTestTypeControl b)
 {
     Assert.False(a.IsFake());
     Assert.False(b.IsFake());
     Assert.Equal(a.Info.Id, b.Info.Id);
     Assert.Equal(a.SystemName, b.SystemName);
     Assert.Equal(a.SystemName, a.Info.SystemName);
     Assert.Equal(a.Info.SystemName, b.Info.SystemName);
     Assert.Equal(a.Info.DisplayName, b.Info.DisplayName);
     Assert.Equal(a.Info.IsSystem, b.Info.IsSystem);
 }
Example #6
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);
 }
 protected UnitTestControlBase(
     IComponentControl component,
     IUnitTestTypeControl type,
     string systemName)
 {
     if (component == null)
     {
         throw new ArgumentNullException("component");
     }
     if (type == null)
     {
         throw new ArgumentNullException("type");
     }
     if (systemName == null)
     {
         throw new ArgumentNullException("systemName");
     }
     SystemName = systemName;//todo
     Component  = component;
     Type       = type;
 }
Example #8
0
 public IUnitTestControl GetOrCreateUnitTestControl(IUnitTestTypeControl unitTestTypeControl, string systemName)
 {
     return(new FakeUnitTestControl());
 }
Example #9
0
 public GetOrCreateUnitTestResponse GetOrCreateUnitTest(IUnitTestTypeControl unitTestTypeControl, string systemName)
 {
     return(ResponseHelper.GetOfflineResponse <GetOrCreateUnitTestResponse>());
 }