public void HttpVerbIsCorrect() { var verb = AttributeReader.GetMethodAttribute <HttpGetAttribute>( typeof(TranslationItemController), nameof(TranslationItemController.GetTranslationItems)); verb.Should().NotBeNull(); }
public void RouteIsCorrect() { var route = AttributeReader.GetMethodAttribute <HttpGetAttribute>( typeof(TranslationItemController), nameof(TranslationItemController.GetTranslationItems)) .Template; route.Should().BeNull(); }
public void RouteIsCorrect() { var route = AttributeReader.GetMethodAttribute <HttpDeleteAttribute>( typeof(TranslationItemController), nameof(TranslationItemController.DeleteTranslationItem)) .Template; route.Should().Be("{key}"); }