I tried: class MyMailer def routes Rails.application.routes.url_helpers end def my_mail @my_route = routes.my_helper ... …
ruby-on-rails actionmailer urlhelperI have a method in the controller ApplicationsController, in which I need to get the base URL for an action …
c# asp.net-mvc-4 urlhelperI'm working on creating a UrlHelper for a background worker to create callback urls, which means it's not part of …
c# asp.net-core asp.net-core-2.0 urlhelperI use NUnit and Moq libraries for unit testing. I need to mock overloaded Url.Action(string, string, object, string), …
asp.net-mvc unit-testing moq urlhelperI want to use IUrlHelper through dependency injection to be able to use its functionality to generate uris for different …
c# dependency-injection inversion-of-control asp.net-core-mvc urlhelper