Update the expected exception from the DI container
This commit is contained in:
parent
f99a29a12c
commit
0654c86d61
|
|
@ -27,7 +27,7 @@ namespace Microsoft.AspNet.Identity.Test
|
|||
var id = new ClaimsIdentity(IdentityOptions.ApplicationCookieAuthenticationType);
|
||||
var ticket = new AuthenticationTicket(id, new AuthenticationProperties { IssuedUtc = DateTimeOffset.UtcNow });
|
||||
var context = new CookieValidateIdentityContext(httpContext.Object, ticket, new CookieAuthenticationOptions());
|
||||
var ex = await Assert.ThrowsAsync<Exception>(() => SecurityStampValidator.ValidateIdentityAsync(context));
|
||||
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => SecurityStampValidator.ValidateIdentityAsync(context));
|
||||
Assert.True(ex.Message.Contains("No service for type 'Microsoft.Framework.OptionsModel.IOptions"));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue