Esempio n. 1
0
        public void GetFrequenciesTest()
        {
            AccountUtil freqUtil = new AccountUtil();
            var frequencies = freqUtil.GetFrequencies();

            if (frequencies == null || frequencies.Count() < 1)
                Assert.Fail("No Frequencies returned.");
        }
Esempio n. 2
0
 public List<Frequency> GetFrequencies()
 {
     try
     {
         AccountUtil utility = new AccountUtil();
         return utility.GetFrequencies();
     }
     catch (ModelException ex)
     {
         CapitalError error = new CapitalError(ex);
         throw new FaultException<CapitalError>(error, error.Message);
     }
     catch (Exception)
     {
         return null;
     }
 }