// In order to make this testable we can move mapping outside and test as public methods
        // (although this is not a method that should be public, so maybe internal and make visible only to testing project)
        private Cyril MapFurryToCyril(Furry furry)
        {
            var cyril = new Cyril();

            cyril.Id  = furry.Id;
            cyril.Age = furry.Age;
            return(cyril);
        }
Exemple #2
0
 public void TestMethod3()
 {
     Assert.AreEqual($"Welcome to Nkandla, {Cyril.getName()}", Home.accept(Cyril));
 }