Create a Mock Facebook LoginManager for unit testing

Lezárva Kiadva: 5 évvel ezelőtt Kiszállításkor fizetve
Lezárva Kiszállításkor fizetve

I need a Mock Facebook LoginManager for unit testing.

I want to be able to initialise it with the type of test outcome that I want:

public enum MockResult {

case successNoDeclined

case successPublicProfileDeclined

case successEmailDeclined

case successUserFriendsDeclined

case successUserHometownDeclined

case cancelled

case failed

}

The function and args need to be the same as the LoginManager Class, so I can use dependancy injection to test my code:

public func logIn(readPermissions: [ReadPermission] = [.publicProfile], viewController: UIViewController? = nil, completion: ((LoginResult) -> Void)? = nil)

Facebook API iPhone Objective C Swift

Projektazonosító: #18084597

A projektről

1 ajánlat Távolról teljesíthető projekt Utoljára aktív: 5 évvel ezelőtt

1 szabadúszó tett átlagosan $30 árajánlatot erre a munkára

YATISHAGRAWAL

Hi there, Greetings !!! How are you?? I am interested in your project and would like to discuss the project with you. I have more than 7 years experience in iOS and I have integrated facebook login and sharing i Továbbiak

$30 AUD 1 napon belül
(5 vélemény)
3.0