Beispiel #1
0
 public AttributeValueParameters(IAttributeValueParameters parameters)
 {
     AttributeInfo = parameters.AttributeInfo;
     Resolution    = parameters.Resolution;
 }
Beispiel #2
0
        private static IResult ResolveDefects(IEnumerable <LotAttributeDefect> unresolvedDefects, Parameters parameters, IDefectResolutionParameters resolution, ILotUnitOfWork unitOfWork)
        {
            var createResolutionCommand = new CreateLotDefectResolutionCommand(unitOfWork);
            var resolutionResult        = unresolvedDefects.Select(
                unresolvedDefect => createResolutionCommand.Execute(new CreateLotDefectResolutionParameters
            {
                LotDefect      = unresolvedDefect.LotDefect,
                Employee       = parameters.Employee,
                TimeStamp      = parameters.TimeStamp,
                ResolutionType = resolution.ResolutionType,
                Description    = resolution.Description
            }))
                                          .FirstOrDefault(r => !r.Success);

            return(resolutionResult as IResult ?? new SuccessResult());
        }