Esempio n. 1
0
 public TeglasConectorTest()
 {
     _fakeDataFactory                = new FakeDataFactory(RestaurantName);
     _googleSpreadsheetIdFactory     = new GoogleSpreadsheetIdFactory();
     _googleSheetService             = new GoogleSheetServiceFake();
     _googleSheetService_returnNull  = new GoogleSheetServiceFake_ReturnNull();
     _googleSheetService_returnEmpty = new GoogleSheetServiceFake_ReturnEmpty();
     _teglasConector            = new TeglasConector(_googleSheetService, _googleSpreadsheetIdFactory);
     _teglasConector_NullCheck  = new TeglasConector(_googleSheetService_returnNull, _googleSpreadsheetIdFactory);
     _teglasConector_EmptyCheck = new TeglasConector(_googleSheetService_returnEmpty, _googleSpreadsheetIdFactory);
 }
Esempio n. 2
0
        public GoogleApiExport(
            ITeglasConector teglasConector,
            IHedoneConector hedoneConector,
            ILipaConector lipaConector,
            IOrderQueryRepository orderQueryRepo,
            ICustomerQueryRepository customerQueryRepo,
            IRestaurantQueryRepository restaurantQueryRepo)
        {
            // Connectors
            _lipaConector   = lipaConector;
            _hedoneConector = hedoneConector;
            _teglasConector = teglasConector;

            // Services
            _orderQueryRepo      = orderQueryRepo;
            _customerQueryRepo   = customerQueryRepo;
            _restaurantQueryRepo = restaurantQueryRepo;
        }