Пример #1
0
        static void Main(string[] args)
        {
            CultureInfo.DefaultThreadCurrentCulture   = new CultureInfo("en-GB");
            CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo("en-GB");
            InAppBehavior inAppBehavior = new InAppBehavior();

            inAppBehavior.WelcommmingScreen();
        }
Пример #2
0
 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);
 }
Пример #3
0
 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);
 }
Пример #4
0
 internal Searcher(InAppBehavior inAppBehavior, T searchItem)
 {
     reader          = new ReadFromConsole();
     validator       = new CustomValidator(inAppBehavior);
     this.searchItem = searchItem;
 }
Пример #5
0
 public CustomValidator(InAppBehavior inAppBehavior)
 {
     this.inAppBehavior = inAppBehavior;
 }