public static async Task <WCAUser> GetTestUser2(this WebContainerFixture containerFixture) { if (containerFixture is null) { throw new ArgumentNullException(nameof(containerFixture)); } WCAUser testUser2 = default(WCAUser); await containerFixture.ExecuteScopeAsync(async sp => { var userManager = sp.GetService <UserManager <WCAUser> >(); testUser2 = await userManager.FindByEmailAsync(Test2UserEmail); }); return(testUser2); }
public ResetDatabaseAttribute(WebContainerFixture webContainerFixture) { this.webContainerFixture = webContainerFixture; }