コード例 #1
0
 public LoginTests()
 {
     _mocker         = new MockerFactory();
     authServiceMock = new Mock <IAuthService>();
     userRepoMock    = new Mock <IUserRepository>();
     _sut            = new AuthServiceProvider(authServiceMock.Object, _mocker.Mapper.Object, userRepoMock.Object);
 }
コード例 #2
0
 public LogoutTests()
 {
     _mocker         = new MockerFactory();
     authServiceMock = new Mock <IAuthService>();
     userRepoMock    = new Mock <IUserRepository>();
     ctxMock         = new Mock <IHttpContextAccessor>();
     _sut            = new AuthServiceProvider(authServiceMock.Object, _mocker.Mapper.Object, userRepoMock.Object);
 }