Example #1
0
        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));
 }
Example #4
0
 public WelcomeController(WelcomeMessage mess)
 {
     this._message = mess;
 }
Example #5
0
 public WelcomeController(WelcomeMessage message)
 {
     _message = message ?? throw new ArgumentNullException(nameof(message));
 }
Example #6
0
 public WelcomeController(WelcomeMessage welcome)
 {
     _message = welcome.Message;
 }
Example #7
0
        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;
 }
Example #9
0
 public WelcomeController(WelcomeMessage welcomeMessage)
 {
     this._message = welcomeMessage;
 }
Example #10
0
 public WelcomeController(WelcomeMessage message)
 {
     this._welcomeMessage = message;
 }
Example #11
0
 public WelcomeController(WelcomeMessage message, IConfiguration configuration)
 {
     _message       = message;
     _configuration = configuration;
 }