よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
public void Delete_should_be_HttpDelete_and_allow_admins() { string methodName = nameof(PagesController.Delete); Type attributeType = typeof(HttpDeleteAttribute); _pagesController.ShouldHaveAttribute(methodName, attributeType); _pagesController.ShouldAuthorizeAdmins(methodName); }