public static void RunPrototype() { var sampleOne = new DnaSample("Bill", "ACTGAGTCGTCA"); var sampleTwo = new DnaSample("Steve", "GTACAGTCATGG"); var sampleThree = new DnaSample("Linus", "CGTAAAGTGCTT"); DnaTest dnaTestObject = new MitochondrialTest(); dnaTestObject.PerformTest(sampleOne.Clone(), sampleTwo.Clone()); dnaTestObject = new PaternityTest(); dnaTestObject.PerformTest(sampleOne.Clone(), sampleThree.Clone()); }
public override void PerformTest(DnaSample sampleOne, DnaSample sampleTwo) { Console.WriteLine("Performed mtDNA Test to check whether " + sampleOne.OwnerName + " and " + sampleTwo.OwnerName + " share a common ancester"); }
public override void PerformTest(DnaSample sampleOne, DnaSample sampleTwo) { Console.WriteLine("Performed Y-Chromosome Test to check whether " + sampleOne.OwnerName + " and " + sampleTwo.OwnerName + " having father-child relationship"); }
public abstract void PerformTest(DnaSample sampleOne, DnaSample sampleTwo);