Beispiel #1
0
        public IFacade CreateClasses()
        {
            Class1  o1     = new Class1();
            Class2  o2     = new Class2();
            Class3  o3     = new Class3();
            IFacade facade = new Facade(o1, o2, o3);

            return(facade);
        }
Beispiel #2
0
 public Facade(Class1 object1, Class2 object2, Class3 object3)
 {
     this.object1 = object1 ?? throw new ArgumentNullException(nameof(object1));
     this.object2 = object2 ?? throw new ArgumentNullException(nameof(object2));
     this.object3 = object3 ?? throw new ArgumentNullException(nameof(object3));
 }