Last active
December 15, 2015 10:59
-
-
Save yemrekeskin/5249696 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DomesticPaymentRepository | |
: BaseRepository<Payment> | |
{ | |
} | |
public class ForeignPaymentRepository | |
:BaseRepository<Payment> | |
{ | |
} | |
public class TreasuryRepository | |
:BaseRepository<Payment> | |
{ | |
} | |
public class UniversalRepository | |
{ | |
// repositories | |
private DomesticPaymentRepository _domestic; | |
private ForeignPaymentRepository _foreign; | |
private TreasuryRepository _treasury; | |
public DomesticPaymentRepository DomesticPaymentRepository | |
{ | |
get | |
{ | |
if (null == _domestic) | |
_domestic = new DomesticPaymentRepository(); | |
return _domestic; | |
} | |
} | |
public ForeignPaymentRepository ForeignPaymentRepository | |
{ | |
get | |
{ | |
if (null == _foreign) | |
_foreign = new ForeignPaymentRepository(); | |
return _foreign; | |
} | |
} | |
public TreasuryRepository TreasuryRepository | |
{ | |
get | |
{ | |
if (null == _treasury) | |
_treasury = new TreasuryRepository(); | |
return _treasury; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment