public void ControllerHasProducesAtttributeWithTheCorrectContentType()
        {
            var sut       = new ResourceApiController(null);
            var attribute = sut.GetAttributes().OfType <ProducesAttribute>().SingleOrDefault();

            Assert.NotNull(attribute);
            Assert.Equal("application/json", attribute.ContentTypes.Select(x => x).First());
        }
        public void ControllerHasRouteAtttributeWithTheCorrectTemplate()
        {
            var sut       = new ResourceApiController(null);
            var attribute = sut.GetAttributes().OfType <RouteAttribute>().SingleOrDefault();

            Assert.NotNull(attribute);
            Assert.Equal("api/resource", attribute.Template);
        }