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); }
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); }