public AuthenticationController( IMapper mapper, IAuthenticationProcessor authenticationProcessor) { this.mapper = mapper; this.authenticationProcessor = authenticationProcessor; }
public ValidateUsernameAsyncTests() { uow = new Mock <IUnitOfWork>(); userRepo = new Mock <IUserRepository>(); loginRepo = new Mock <ILoginCredentialsRepository>(); processor = new WorkoutTracker.Business.AuthenticationProcessor( uow.Object, loginRepo.Object, userRepo.Object); }
public SignUpAsyncTests() { uow = new Mock <IUnitOfWork>(); userRepo = new Mock <IUserRepository>(); loginRepo = new Mock <ILoginCredentialsRepository>(); userRepo.Setup(u => u.AddUserAsync(It.IsAny <User>())) .ReturnsAsync(new User() { Id = 1, Name = "Test User" }); processor = new WorkoutTracker.Business.AuthenticationProcessor( uow.Object, loginRepo.Object, userRepo.Object); }
public Authentication(IAuthenticationProcessor authenticationProcessor) { this.authenticationProcessor = authenticationProcessor; }