public void GetDateTimeOfFirstEventTest()
 {
     var db = new Database("test.db");
     EventDataHelper target = new EventDataHelper(); // TODO: Initialize to an appropriate value
     var actual = target.GetDateTimeOfFirstEvent();
     Assert.IsNotNull(actual);
 }
 public StatisticsService()
 {
     this.routeDataHelper = new RouteDataHelper();
     this.priceDataHelper = new PriceDataHelper();
     this.eventDataHelper = new EventDataHelper();
     this.routeNodeDataHelper = new RouteNodeDataHelper();
     this.countryDataHelper = new CountryDataHelper();
     this.companyDataHelper = new CompanyDataHelper();
     this.deliveryDataHelper = new DeliveryDataHelper();
 }
Пример #3
0
        public EventService(CurrentState state)
        {
            dataHelper = new EventDataHelper();
            this.state = state;

            if (!state.EventsInitialised())
            {
                int currentNumberOfEvents = dataHelper.GetNumberOfEvents();
                if (currentNumberOfEvents != 0)
                {
                    state.SetNumberOfEvents(currentNumberOfEvents);
                }
            }
        }