Beispiel #1
0
        public bool IsFulfilled()
        {
            bool isFulfilled = false;

            if (!string.IsNullOrEmpty(MissionModel.LinkUrl) && MissionModel.SelectedFriend != null)
            {
                try
                {
                    ITester connectionTester = new ConnectionTester(MissionModel.LinkUrl);
                    isFulfilled = connectionTester.Test();
                }
                catch (Exception ex)
                {
                    throw new Exception("The url you have supplied isn't valid", ex);
                }
            }

            return(isFulfilled);
        }
        public bool IsFulfilled()
        {
            bool isFulfilled = false;

            if (!string.IsNullOrEmpty(MissionModel.LinkUrl))
            {
                try
                {
                    ITester connectionTester = new ConnectionTester(MissionModel.LinkUrl);
                    isFulfilled = connectionTester.Test();
                }
                catch (Exception ex)
                {
                    throw new Exception("The url you have supplied is either invalid, or it prevents us from reaching it. Please try again with a different address.", ex);
                }
            }

            return(isFulfilled);
        }