public ForexControllerTest()
        {
            Mock <IForexDataService> mock = new Mock <IForexDataService>();

            mock.Setup(service => service.GetSymbolsAsync()).ReturnsAsync(() => mockResult);
            _service    = mock.Object;
            _controller = new ForexController(_service);
        }
Beispiel #2
0
 public ForexController(IForexDataService service)
 {
     _service = service;
 }