Example #1
0
 // ReSharper disable once UnusedMember.Local
 static PackingRunner BuildRunnerExplicitly()
 {
     var provider = new BagProvider();
     var builder = new BoxBuilder();
     var closer = new BoxLidCloser();
     IBagFiller bagPacker = new BagFiller(provider);
     IBoxPacker boxPacker = new BoxPacker(builder, closer);
     var runner = new PackingRunner(bagPacker, boxPacker);
     return runner;
 }
Example #2
0
 public BoxPacker(BoxBuilder builder, BoxLidCloser closer)
 {
     _builder = builder;
     _closer = closer;
 }