public void RegisterTaskHasHttpGetAttribute()
        {
            var sut       = new OrganizationApiController(null);
            var attribute = sut.GetAttributesOn(x => x.GetContact(It.IsAny <int>())).OfType <HttpGetAttribute>().SingleOrDefault();

            Assert.NotNull(attribute);
        }
        public void RegisterTaskHasProducesAttributeWithCorrectContentType()
        {
            var sut       = new OrganizationApiController(null);
            var attribute = sut.GetAttributesOn(x => x.GetContact(It.IsAny <int>())).OfType <ProducesAttribute>().SingleOrDefault();

            Assert.NotNull(attribute);
            Assert.Equal(attribute.Type, typeof(ContactInformationViewModel));
            Assert.Equal(attribute.ContentTypes.Select(x => x).First(), "application/json");
        }