public void SalespersonControllerTest_Get() { Task.Run(async() => { var person = await controller.GetAsync(1); string expected = "Mike"; Assert.AreEqual(expected, person.Name); }).GetAwaiter().GetResult(); }
public async void GetPersonAsync() { Person = await api.GetAsync(1); FirstName = Person.Name; LastName = Person.LastName; }
public async void SalespersonControllerTest_GetAsync() { Salesperson person = await controller.GetAsync(1); Assert.IsNotNull(person); }