예제 #1
0
        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());
        }
예제 #2
0
 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");
 }
예제 #3
0
 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");
 }
예제 #4
0
 public abstract void PerformTest(DnaSample sampleOne, DnaSample sampleTwo);