Пример #1
0
        public PlacesRepositoryTestsFixture()
        {
            Hierarchy = new Hierarchy <string>();
            Hierarchy.AddTopNode("universe", "Universe");
            Hierarchy.GetNodeById("universe").AddSubNode("solar_system", "Solar system");
            Hierarchy.GetNodeById("solar_system").AddSubNode("earth", "Earth");
            Hierarchy.GetNodeById("solar_system").AddSubNode("mars", "Mars");

            Db = TimelineContextProvider.GetDbContext();

            Repo = new PlacesRepository(Db);

            EventsRepo = new EventsRepository(Db);
        }
        public IdsEventsSpecificationTestsFixture()
        {
            Db = TimelineContextProvider.GetDbContext();

            EventsRepo = new EventsRepository(Db);

            Events = new[]
            {
                new Event <string, string>("A", SpecificDate.BeforeChrist(10), SpecificDate.AnnoDomini(12)),
                new Event <string, string>("B", SpecificDate.BeforeChrist(20, 5)),
                new Event <string, string>("C", SpecificDate.AnnoDomini(2020, 1, 1), NowDate.Instance),
                new Event <string, string>("D", NowDate.Instance),
                new Event <string, string>("E", SpecificDate.BeforeChrist(100, 2, 3, 10), SpecificDate.BeforeChrist(100, 2, 3, 20)),
            };
        }
        public NotEventsSpecificationTestsFixture()
        {
            Db = TimelineContextProvider.GetDbContext();

            EventsRepo = new EventsRepository(Db);
        }
Пример #4
0
        public EventsRepositoryTests()
        {
            _db = TimelineContextProvider.GetDbContext();

            _repo = new EventsRepository(_db);
        }