/*
 * Copyright (C) 2016 Mantas Varnagiris.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

package com.mvcoding.expensius.feature.login

class LoginWithAccountPresenterTest {
//    val loginFailuresSubject = PublishSubject<Unit>()
//    val appUserSubject = BehaviorSubject(anAppUser().withAuthProvider(ANONYMOUS))
//
//    val appUserService: AppUserService = mock()
//    val view: LoginWithAccountPresenter.View = mock()
//    val presenter = LoginWithAccountPresenter(appUserService, rxSchedulers())
//
//    @Before
//    fun setUp() {
//        whenever(appUserService.appUser()).thenReturn(appUserSubject)
//        whenever(view.loginFailures()).thenReturn(loginFailuresSubject)
//    }
//
//    @Test
//    fun closesWhenLoginFails() {
//        presenter.attach(view)
//
//        loginFailure()
//
//        verify(view).close()
//    }
//
//    @Test
//    fun displaysSupportDeveloperWhenLoginSucceeds() {
//        presenter.attach(view)
//
//        loginWithAccount()
//
//        verify(view).displaySupportDeveloper()
//    }
//
//    private fun loginWithAccount() = appUserSubject.onNext(anAppUser().withAuthProvider(GOOGLE))
//    private fun loginFailure() = loginFailuresSubject.onNext(Unit)
}