Example #1
0
 public BagsController()
 {
     this.bagRepo = new BagReporsitory(new SLTDbContext());
 }
 public GreedyAlgorithm(IItemRepository itemRepository, IBagRepository bagRepository)
 {
     _itemRepository = itemRepository;
     _bagRepository  = bagRepository;
 }
Example #3
0
 public BagBuilderFromFile(IBagRepository bagRepository, IDtoStore dtoStore)
 {
     _bagRepository = bagRepository;
     _dtoStore      = dtoStore;
 }
Example #4
0
 public BagBusiness(IBagRepository bagRepository)
 {
     _bagRepository = bagRepository;
 }
Example #5
0
 public KnapsackSolutionWriterToFile(IDtoStore dtoStore, IItemRepository itemRepository, IBagRepository bagRepository)
 {
     _dtoStore       = dtoStore;
     _itemRepository = itemRepository;
     _bagRepository  = bagRepository;
 }
 public DynamicProgrammingAlgorithm(IBagRepository bagRepository, IItemRepository itemRepository)
 {
     _bagRepository  = bagRepository;
     _itemRepository = itemRepository;
 }