Ejemplo n.º 1
0
 public HousePriceLookupConfig(IMongoContext mongoContext, IPostcodeLookup postcodeLookup)
 {
     MongoContext   = mongoContext;
     PostcodeLookup = postcodeLookup;
 }
 public PostcodeLookupController(DeliveryOptionsContext context, IPostcodeLookup iPostcodeLookup)
 {
     _context        = context;
     _iPostcodeLooup = iPostcodeLookup;
 }
Ejemplo n.º 3
0
 public Importer(IMongoContext context, IPostcodeLookup postcodeLookup)
 {
     _mongoContext   = context;
     _postcodeLookup = postcodeLookup;
 }
 //Inject the Interface 1 of 2:
 public PostcodeLookup(IPostcodeLookup postcodeLookup)
 {
     //'this' keyword not necessarily needed here but on instances of local parameters holding identical naming then encapsuling the member's naming takes precedence.
     this._postcodeLookup = postcodeLookup;
 }
Ejemplo n.º 5
0
 public HousePriceLookup(IHousePriceLookupConfig config)
 {
     _mongoContext   = config.MongoContext;
     _postcodeLookup = config.PostcodeLookup;
 }