public void ReadTopicTest() { persistenceFactory = AssemblyFactory.LoadInstance <IPersistence>(Environment.CurrentDirectory, "EADN.Semester.QuizGame.Persistence.EF.dll"); // Act using (DAL = persistenceFactory.GetDataAccesLayer()) { topicRepo = DAL.GetTopicRepository(); testTopic = topicRepo.Read(testKey); } // Assert Assert.AreEqual(testTopic.Id, testKey); }
public static void InitTestClass(TestContext context) { testTopic = new Common.TestData.TestQuiz().GetTestData().Question.Topics[0]; topicName = testTopic.Name; topicText = testTopic.Text; }