Exemplo n.º 1
0
        private bool IsValidSpec(IDimensions dimensions)
        {
            var standardDimension = _dimensionRepository.GetDimensions().FirstOrDefault(x => x.Type == "Shuttle");

            return(standardDimension != null && (CompareValues(standardDimension.Length, dimensions.Length) &&
                                                 CompareValues(standardDimension.Width, dimensions.Width) &&
                                                 CompareValues(standardDimension.Height, dimensions.Height) &&
                                                 CompareValues(standardDimension.Diameter, dimensions.Diameter)));
        }