private static CheckMappingResult CheckMapping(TestRunImportPluginProfile settings,
		                                               IEnumerable<TestCaseLightDto> testCases)
        {
            var testCaseTestPlanDtos =
                testCases.Select(
                    testCaseLightDto =>
                    new TestCaseTestPlanDTO {TestCaseID = testCaseLightDto.Id, TestCaseName = testCaseLightDto.Name}).ToList();
            var errors = new PluginProfileErrorCollection();
            settings.ValidateMapperData(errors);
            return ObjectFactory.GetInstance<IMappingChecker>().CheckMapping(settings, testCaseTestPlanDtos, errors);
        }
Ejemplo n.º 2
0
        private static CheckMappingResult CheckMapping(TestRunImportPluginProfile settings,
                                                       IEnumerable <TestCaseLightDto> testCases)
        {
            var testCaseTestPlanDtos =
                testCases.Select(
                    testCaseLightDto =>
                    new TestCaseTestPlanDTO {
                TestCaseID = testCaseLightDto.Id, TestCaseName = testCaseLightDto.Name
            }).ToList();
            var errors = new PluginProfileErrorCollection();

            settings.ValidateMapperData(errors);
            return(ObjectFactory.GetInstance <IMappingChecker>().CheckMapping(settings, testCaseTestPlanDtos, errors));
        }
		public void ValidateProfileForMapping(TestRunImportPluginProfile settings, PluginProfileErrorCollection errors)
		{
			settings.ValidateMapperData(errors);
		}
Ejemplo n.º 4
0
 public void ValidateProfileForMapping(TestRunImportPluginProfile settings, PluginProfileErrorCollection errors)
 {
     settings.ValidateMapperData(errors);
 }