public void Get_ValidId_Ok() { var sut = new WidgetController(); sut.FakeRequest(); var response = sut.Get(1); Assert.Equal(HttpStatusCode.OK, response.StatusCode); }
public void Get_InvalidWidgetId_NotFound() { var sut = new WidgetController(); sut.FakeRequest(); var response = sut.Get(0); Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); }