Exemplo n.º 1
0
        public void Initalize()
        {
            var adapter = new BookAdapter();

            FiveDysfunctions = adapter.AddBook(new BookBuilder().FiveDysfunctions().Build());
            PhoenixProject   = adapter.AddBook(new BookBuilder().ThePhoenixProject().Build());

            adapter.SaveChanges();
        }
        public void AdapterAddBookTest()
        {
            var expected = new BookBuilder().FiveDysfunctions().Build();
            var adapter  = new BookAdapter();

            var response = adapter.AddBook(expected);

            Assert.IsNotNull(response);
            var comparison = Utilities.CompareObjects(expected, response);

            Assert.IsTrue(comparison.AreEqual, $"Expected [{expected}] Actual [{response}]");
        }