public void Test1() { //Arrange ITarget target = new Adapter(); //Act var result = target.Request("Test"); //Assert Assert.Equal("Accepted", result); }
//Адаптер - Adapter public Run Adapter() { Console.WriteLine("\nAdapter:"); // Create adapter and place a request Target target = new Patterns.Structural.Adapter.Adapter(); target.Request(); return(this); }