예제 #1
0
        public void Adjust()
        {
            var rawData = buildRepository.GetRawData();

            var raw = new RawBuildData(rawData);
            if (!raw.IsValidData)
            {
                RaiseFoundInvalidData(raw.Data);
                try
                {
                    var fixedRawData = raw.Fix();
                    buildRepository.Save(fixedRawData);
                    RaiseFixedInvalidData();
                }
                catch (Exception e)
                {
                    RaiseCouldNotConvertData(e);
                }
            }
        }
예제 #2
0
        public void Adjust()
        {
            var rawData = buildRepository.GetRawData();

            var raw = new RawBuildData(rawData);

            if (!raw.IsValidData)
            {
                RaiseFoundInvalidData(raw.Data);
                try
                {
                    var fixedRawData = raw.Fix();
                    buildRepository.Save(fixedRawData);
                    RaiseFixedInvalidData();
                }
                catch (Exception e)
                {
                    RaiseCouldNotConvertData(e);
                }
            }
        }