I have a .NET 4.5 proj that uses async/await functionality.
When I try to check the / quickwatch link to a variable after a wait statement, I get the following:
The name 'id' does not exist in the current context
Know how to fix this so that I can debug it?
Change - here is the code
[Fact] public async Task works_as_expected() { var repo = Config.Ioc.GetInstance<IAsyncRepository<Customer>>(); var work = Config.Ioc.GetInstance<IUnitOfWork>(); Customer c= new Customer() { FirstName = "__Micah", LastName = "__Smith_test", DateCreated = DateTime.Now, DateModified = DateTime.Now, Email = " m@m.com ", Phone = "7245551212" }; var id=await repo.Insert(c);
Micah
source share