Esempio n. 1
0
        public void Test1()
        {
            //Arrange
            ITarget target = new Adapter();

            //Act
            var result = target.Request("Test");

            //Assert
            Assert.Equal("Accepted", result);
        }
Esempio n. 2
0
        //Адаптер - Adapter
        public Run Adapter()
        {
            Console.WriteLine("\nAdapter:");

            // Create adapter and place a request
            Target target = new Patterns.Structural.Adapter.Adapter();

            target.Request();

            return(this);
        }