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