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);
        }
Esempio 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);
		}
Esempio n. 4
0
 public void ValidateProfileForMapping(TestRunImportPluginProfile settings, PluginProfileErrorCollection errors)
 {
     settings.ValidateMapperData(errors);
 }