public void GetResultWithFail() { //ASSETS var controller = new RequestBusInfoController(); //ACT var actual = Task.Run(async() => await controller.Get("").ConfigureAwait(false)).GetAwaiter().GetResult(); }
public void GetResultsWithSuccess() { //ASSETS var controller = new RequestBusInfoController(); //ACT var actual = Task.Run(async() => await controller.Get("LION1").ConfigureAwait(false)).GetAwaiter().GetResult(); //ASSERTS actual.Should().NotBeNull(); actual.Should().HaveCount(1); }