Skip to content

Instantly share code, notes, and snippets.

View dbacinski's full-sized avatar
🏠
Working remotely

Dariusz Baciński dbacinski

🏠
Working remotely
View GitHub Profile
using System.Threading.Tasks;
using Newtonsoft.Json;
using Refit;
using System.Net.Http;
using System;
namespace wms_xamarin
{
public class LoginApi
{
@dbacinski
dbacinski / espresso_m_test
Last active January 8, 2016 15:50
Spock + Espresso + Dagger2 + Runtime Permissions + RxJava
Spock + Espresso + Dagger2 + Runtime Permissions + RxJava
Test:
https://github.com/dbacinski/meteopl-unofficial/blob/master/app/src/androidTest/groovy/pl/dariuszbacinski/meteo/location/LocationSaveSpec.groovy#L25
Test Stubs Setup:
https://github.com/dbacinski/meteopl-unofficial/blob/master/app/src/androidTest/groovy/pl/dariuszbacinski/meteo/location/LocationSetup.groovy#L38
Stubbed Objects:
https://github.com/dbacinski/meteopl-unofficial/blob/master/app/src/main/java/pl/dariuszbacinski/meteo/location/model/CoarseLocation.java#L27
Dagger2 local component provider:
https://github.com/dbacinski/meteopl-unofficial/blob/master/app/src/main/java/pl/dariuszbacinski/meteo/location/view/LocationFragment.java#L216