public void ReturnMessageContainingSuccessful() { var service = new ValueService(); var result = service.GetValueFromApi(); result.ShouldContain("successful"); }
public IActionResult GetValues() { // call backend var response = _service.GetValueFromApi(); // create view model var model = new ValueViewModel(response); return(View(model)); }