static int Main() { const string address = "http://localhost:5110"; using( var host = new RecipeBookHost( address ) ) { Console.WriteLine( "v1 Shaker Service running. Press [Enter] to close" ); Console.ReadLine(); } return 0; }
public void ClientAndServiceStartAndCanCommunicate() { const string address = "http://localhost:5110"; using( var host = new RecipeBookHost( address ) ) using( var recipes = new RecipeBookClient( address ) ) { Assert.IsNotNull( host ); Assert.IsNotNull( recipes ); Assert.DoesNotThrow( () => { var x = recipes.AllDrinks; } ); } }
public void Start() { const string address = "http://localhost"; host = new RecipeBookHost( address ); recipes = new RecipeBookClient( address ); }