예제 #1
0
        public void Get_ValidId_Ok()
        {
            var sut = new WidgetController();
            sut.FakeRequest();

            var response = sut.Get(1);

            Assert.Equal(HttpStatusCode.OK, response.StatusCode);
        }
예제 #2
0
        public void Get_InvalidWidgetId_NotFound()
        {
            var sut = new WidgetController();
            sut.FakeRequest();

            var response = sut.Get(0);

            Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
        }