예제 #1
0
        public void Should_Throw_BadRequest_If_Value_Is_Null()
        {
            SongVM value = null;

            var exception = Assert.Throws <HttpResponseException>(() => _songController.Insert(value));

            exception.Response.StatusCode.Should().Be(HttpStatusCode.BadRequest);
        }