public ForexControllerTest() { Mock <IForexDataService> mock = new Mock <IForexDataService>(); mock.Setup(service => service.GetSymbolsAsync()).ReturnsAsync(() => mockResult); _service = mock.Object; _controller = new ForexController(_service); }
public ForexController(IForexDataService service) { _service = service; }