예제 #1
0
        public override void TestInitialize()
        {
            base.TestInitialize();
            coaches   = new TestRepository();
            entries   = new TestTimetableEntriesRepository();
            trainings = new TestTrainingsRepository();
            locations = new TestLocationsRepository();
            types     = new TestTrainingTypesRepository();
            data      = GetRandom.Object <CoachData>();
            var c = new Coach(data);

            coaches.Add(c).GetAwaiter();
            trainingData = GetRandom.Object <TrainingData>();
            var t = new Training(trainingData);

            trainings.Add(t).GetAwaiter();
            trainingTypeData = GetRandom.Object <TrainingTypeData>();
            var tt = new TrainingType(trainingTypeData);

            types.Add(tt).GetAwaiter();
            locationData = GetRandom.Object <LocationData>();
            var l = new Location(locationData);

            locations.Add(l).GetAwaiter();
            obj = new TestClass(coaches, entries, trainings, locations, types);
        }
예제 #2
0
        public override void TestInitialize()
        {
            base.TestInitialize();
            clients      = new TestRepository();
            participants = new TestParticipantOfTrainingsRepository();
            entries      = new TestTimetableEntriesRepository();
            data         = GetRandom.Object <TimetableEntryData>();
            var m = new TimetableEntry(data);

            entries.Add(m).GetAwaiter();
            obj = new TestClass(clients, participants, entries);
        }
예제 #3
0
        public override void TestInitialize()
        {
            base.TestInitialize();
            participants = new TestRepository();
            clients      = new TestClientsRepository();
            clientData   = GetRandom.Object <ClientData>();
            var c = new Client(clientData);

            clients.Add(c).GetAwaiter();
            entries = new TestTimetableEntriesRepository();
            data    = GetRandom.Object <TimetableEntryData>();
            var tt = new TimetableEntry(data);

            entries.Add(tt).GetAwaiter();
            obj = new TestClass(participants, entries, clients);
        }