Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Shop shop = new Shop();

            var client = new ToyServiceClient();

            shop.CreateToy(new ToyWcf()
            {
                Name = "Nazwa", Price = 12, Value = 123
            });
            Console.Write(shop.GetToy("Nazwa").Price);
            Console.ReadKey();
        }
Ejemplo n.º 2
0
        public ToyWcf GetToy(String name)
        {
            var client = new ToyServiceClient();

            return(client.GetToy(name));
        }
Ejemplo n.º 3
0
        public string CreateToy(ToyWcf toy)
        {
            var client = new ToyServiceClient();

            return(client.CreateToy(toy));
        }