public void GetHasHttpGetAttributeWithCorrectTemplate() { var sut = new ClosestLocationsController(null); var attribute = sut.GetAttributesOn(x => x.Get(It.IsAny<double>(), It.IsAny<double>(), It.IsAny<int>(), It.IsAny<int>())).OfType<HttpGetAttribute>().SingleOrDefault(); Assert.NotNull(attribute); Assert.Equal(attribute.Template, "{lat}/{lon}/{distance}/{count}"); }