Ejemplo n.º 1
0
 public ServiceRate GetServiceRateAtDate(DateTime refDate, Services.Service service)
 {
     return(ServiceRates
            .Where(x => x.EffectiveDate <= refDate && x.ServiceID == service.ID)
            .OrderByDescending(x => x.EffectiveDate)
            .FirstOrDefault());
 }
Ejemplo n.º 2
0
        public void GetAllTest()
        {
            var moqDaoRates = new Mock <IDaoRates>();

            moqDaoRates.Setup(r => r.GetAll()).Returns(new Collection <Rates>());

            ServiceRates serviceRates = new ServiceRates(moqDaoRates.Object);

            Assert.AreNotEqual(serviceRates.GetAll(), null);
        }