Пример #1
0
        public void TestWiborProvider()
        {
            var mock = new Mock <IXiborService>();

            mock.Setup(foo => foo.ProvideInterbankOfferedRate3M()).Returns(1.3M);
            IXiborService wiborProvider = mock.Object;
            decimal       wiborValue    = wiborProvider.ProvideInterbankOfferedRate3M();

            Assert.AreEqual(1.3M, wiborValue);
        }
Пример #2
0
 public decimal Wibor3M()
 {
     return(xborService.ProvideInterbankOfferedRate3M());
 }