static void Main(string[] args) { CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-GB"); CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo("en-GB"); InAppBehavior inAppBehavior = new InAppBehavior(); inAppBehavior.WelcommmingScreen(); }
public InsertUpdate(InAppBehavior inAppBehavior, IRepo <Customer> customerRepo, IRepo <Reservation> reservationRepo, IRepo <Location> locationRepo) { this.inAppBehavior = inAppBehavior; contextManager = new ContextManager(customerRepo, reservationRepo, locationRepo); reader = new ReadFromConsole(); validator = new CustomValidator(inAppBehavior); }
public GetAndPrint(InAppBehavior inAppBehavior, T searchItem, IRepo <Car> carRepo, IRepo <Customer> customerRepo, IRepo <Reservation> reservationRepo, IRepo <Location> locationRepo, IRepo <Model> modelRepo, IRepo <Manufacturer> manufacurerRepo) { queryManager = new QueryManager(carRepo, customerRepo, reservationRepo, locationRepo, modelRepo, manufacurerRepo); this.inAppBehavior = inAppBehavior; this.searchItem = searchItem; searcher = new Searcher <T>(inAppBehavior, searchItem); }
internal Searcher(InAppBehavior inAppBehavior, T searchItem) { reader = new ReadFromConsole(); validator = new CustomValidator(inAppBehavior); this.searchItem = searchItem; }
public CustomValidator(InAppBehavior inAppBehavior) { this.inAppBehavior = inAppBehavior; }