示例#1
0
 public void SetUp()
 {
     userStoreMock   = new Mock <IUserStore <User> >();
     signupValidator = new Mock <IIdentityValidator <User> >();
     userManagerMock = new Mock <UserManager <User> >(userStoreMock.Object);
     underTest       = new SignUpOperation(userManagerMock.Object, signupValidator.Object);
 }
示例#2
0
 public void SetUp()
 {
     userStoreMock   = new Mock <IUserStore <ApplicationUser> >();
     userManagerMock = new Mock <UserManager <ApplicationUser> >(userStoreMock.Object);
     authManager     = new Mock <IAuthenticationManager>();
     signinManager   = new SignUpOperation(userManagerMock.Object, authManager.Object);
 }