public void AlgoTest() { var checkerFactory = new CheckerFactory(); var algo = new ShinyBusinessService(); var source = new Simple { Id = 1, Name = "A", Value = 1.0 }; var expected = new Simple { Id = 2, Name = "B", Value = 1.2 }; var candidate = algo.Run(source); checkerFactory.Check(expected, candidate); }
public void GenericTest() { var checkerFactory = new CheckerFactory(); var algo = new ShinyBusinessService(); var source = new Simple {Id = 1, Name = "A", Value = 1.0}; var expected = new Simple {Id = 2, Name = "B", Value = 1.2}; var candidate = algo.Run(source); var wexpected = new Wrapper<Simple> {Content = expected}; var wcandidate = new Wrapper<Simple> {Content = candidate}; checkerFactory.Check(wexpected, wcandidate); }
public void AlgoTest() { var checkerFactory = new CheckerFactory(); var algo = new ShinyBusinessService(); var source = new Simple { Id = 1, Name = "A", Value = 1.0 }; var expected = new Simple { Id = 2, Name = "B", Value = 1.2 }; var candidate = algo.Run(source); checkerFactory.Check(expected, candidate); }
public void GenericInterfaceTest() { var checkerFactory = new CheckerFactory(); var algo = new ShinyBusinessService(); var source = new Simple { Id = 1, Name = "A", Value = 1.0 }; var expected = new Simple { Id = 2, Name = "B", Value = 1.2 }; var candidate = algo.Run(source); IWrapper <Simple> wexpected = new Wrapper <Simple> { Content = expected }; IWrapper <Simple> wcandidate = new Wrapper <Simple> { Content = candidate }; checkerFactory.Check(wexpected, wcandidate); }