public void Test_GetAllCrusts() { List <Crust> sut = crustrepository.GetAllCrusts(); int actual = sut.Count; Assert.Equal(actual, 4); }
public ActionResult <Crust> Get() { try { return(Ok(repo.GetAllCrusts())); } catch (Exception ex) { return(StatusCode(400, ex.Message)); } }