public void GetShouldReturnHelloWorld() { // Arrange var service = new HelloService(); // Act var result = service.SayHello(); // Assert Assert.Equal("Hello world!", result); }
public async Task <IActionResult> Get() { await HelloService.SayHello(); return(Ok(new { //name = await HelloService.SetMeta(("token", "bearer .....")).SayHello(Guid.NewGuid().ToString()), age = await HelloService.Age(), //entity = await HelloService.SayHello(new TestModel { Id = 1, Name = "owen" }) })); }
static void Main(string[] args) { HelloService p = new HelloService(); Console.WriteLine(p.SayHello()); }
public void Run() { _service.SayHello(); }
public override void ExecuteJob(IJobExecutionContext context) { _helloService.SayHello(); }
static void Main(string[] args) { var hello = new HelloService(); System.Console.WriteLine(hello.SayHello()); }