public HedoneConectorTest() { _googleSpreadsheetIdFactory = new GoogleSpreadsheetIdFactory(); _googleSheetService = new GoogleSheetServiceFake(); _googleSheetService_returnNull = new GoogleSheetServiceFake_ReturnNull(); _googleSheetService_returnEmpty = new GoogleSheetServiceFake_ReturnEmpty(); _hedoneConector = new HedoneConector(_googleSheetService, _googleSpreadsheetIdFactory); _hedoneConector_NullCheck = new HedoneConector(_googleSheetService_returnNull, _googleSpreadsheetIdFactory); _hedoneConector_EmptyCheck = new HedoneConector(_googleSheetService_returnEmpty, _googleSpreadsheetIdFactory); }
public FormsViewModel() { Response = new UserResponse(); databaseService = DependencyService.Get <IDatabaseService>(); googleSheetService = DependencyService.Get <IGoogleSheetService>(); responseRetryService = DependencyService.Get <IResponseRetryService>(); RetryCommand = new Command(async() => await ResubmitResponsesAsync()); SubmitCommand = new Command(async() => await SubmitResponseAsync()); LoadCommand = new Command(async() => await LoadUnsentResponsesAsync()); }
public LipaConectorTest() { _fakeDataFactory = new FakeDataFactory(RestaurantName); _googleSpreadsheetIdFactory = new GoogleSpreadsheetIdFactory(); _googleSheetService = new GoogleSheetServiceFake(); _googleSheetService_returnNull = new GoogleSheetServiceFake_ReturnNull(); _googleSheetService_returnEmpty = new GoogleSheetServiceFake_ReturnEmpty(); _lipaConector = new LipaConector(_googleSheetService, _googleSpreadsheetIdFactory); _lipaConector_NullCheck = new LipaConector(_googleSheetService_returnNull, _googleSpreadsheetIdFactory); _lipaConector_EmptyCheck = new LipaConector(_googleSheetService_returnEmpty, _googleSpreadsheetIdFactory); }
public TeglasConector(IGoogleSheetService googleSheetService, IGoogleSpreadsheetIdFactory googleSSIdFactory) : base(googleSheetService) { _sheetId = googleSSIdFactory.GetTeglas(); _restaurant = new Restaurant { Name = "Teglas" }; SheetId = _sheetId; OrdersSheet = _ordersSheet; FoodListSheet = _foodListSheet; Restaurant = _restaurant; }
public HedoneConector(IGoogleSheetService googleSheetService, IGoogleSpreadsheetIdFactory googleSSIdFactory) : base(googleSheetService) { _sheetId = googleSSIdFactory.GetHedone(); _restaurant = new Restaurant { Name = "Hedone" }; SheetId = _sheetId; base.OrdersSheet = OrdersSheet; base.DailyMenuSheet = DailyMenuSheet; base.FoodListSheet = FoodListSheet; Restaurant = _restaurant; }
public void Init() { var googleSheetCredential = new GoogleSheetCredential(); var googleSheet = new GoogleSheetModel(); IConfigurationRoot config = new ConfigurationBuilder() .AddJsonFile(@"appsettings.json", false) .AddUserSecrets("136c518e-7f41-48ab-b641-3facb3f2782c") .Build(); config.GetSection("GoogleSheetCredential").Bind(googleSheetCredential); config.GetSection("GoogleSheet").Bind(googleSheet); _googleSheetCredential = Options.Create(googleSheetCredential); _googleSheet = Options.Create(googleSheet); _googleSheetService = new GoogleSheetService(_googleSheetCredential, _googleSheet); }
protected RestaurantConector(IGoogleSheetService googleSheetService) { GoogleSheetService = googleSheetService; }
public LoggingService(IGoogleSheetService googleSheetService) { sheetService = googleSheetService; }
public ExportStravaDataToGoogleSheetService(IActivityService activityService, IGoogleSheetService sheetService) { _activityService = activityService; _sheetService = sheetService; }
public LineBotMessageService(IOptions <LineBot> lintBot, IGoogleSheetService googleSheetService) { _lineBot = lintBot.Value; _googleSheetService = googleSheetService; }
public InstagramBotFacade(IGoogleSheetService sheetService, IInstagramCrawlerService instagramService) { _sheetService = sheetService; _instagramService = instagramService; }
public ResponseRetryService() { databaseService = DependencyService.Get <IDatabaseService>(); googleSheetService = DependencyService.Get <IGoogleSheetService>(); }