public void Get() { var message = new WelcomeMessage("hello from test"); var controller = new WelcomeController(message); Assert.Equal("hello from test", controller.SayHello()); }
public WelcomeController(WelcomeMessage message) { _message = message; }
public IActionResult postMessage([FromBody] WelcomeMessage message) { return(new OkObjectResult(message.Message)); }
public WelcomeController(WelcomeMessage mess) { this._message = mess; }
public WelcomeController(WelcomeMessage message) { _message = message ?? throw new ArgumentNullException(nameof(message)); }
public WelcomeController(WelcomeMessage welcome) { _message = welcome.Message; }
public string SayHello() => _message.Message; //+ " params = " /*+ _info.Port + " memory " + _info.MemoryLimit*/; public WelcomeController(WelcomeMessage message /*, CloudFoundryInfo info*/) { _message = message; // _info = info; }
public WelcomeController(WelcomeMessage welmsg_arg) { welcomemsg = welmsg_arg; }
public WelcomeController(WelcomeMessage welcomeMessage) { this._message = welcomeMessage; }
public WelcomeController(WelcomeMessage message) { this._welcomeMessage = message; }
public WelcomeController(WelcomeMessage message, IConfiguration configuration) { _message = message; _configuration = configuration; }