コード例 #1
0
        public void GenerateNPVTest()
        {
            NPVCalc.Controllers.NPVController npvControl = new NPVController();



            Assert.Fail();
        }
コード例 #2
0
        public void Setup()
        {
            npvQueryMock   = new Mock <DbSet <NPVQuery> >();
            npvContextMock = new Mock <NPVContext>();

            npvContextMock.Setup(m => m.NPVQueries).Returns(npvQueryMock.Object);
            npvQueryMock.Setup(m => m.Add(It.IsAny <NPVQuery>()));
            npvContextMock.Setup(m => m.SaveChanges());

            npvController = new NPVController(npvContextMock.Object);
        }
コード例 #3
0
 public void Setup()
 {
     _npvService    = A.Fake <INPVCalculatorService>();
     _npvController = new NPVController(_npvService);
 }
コード例 #4
0
        public void Setup()
        {
            _npvDataAccessMock = new Mock <INPVDataAccess>(MockBehavior.Strict);

            _controller = new NPVController(_npvDataAccessMock.Object);
        }