public void TestMethod1() { var objForTesting = new TheConsultationClass(new MyTestFactory()); var consultation1 = new... objForTesting.AddConsultation(consultation1); var consultation2 = objForTesting.GetById(...); Assert.AreEqual("123", consultation2.X); }
public void TestMethod1() { var objForTesting = new TheConsultationClass(new MyTestFactory()); var consultationView = new ConsultationView(); objForTesting.AddConsultation(consultationView, 123); var consultation = objForTesting.GetById(...); Assert.AreEqual(123, consultation.U_Id); }