public void testSetUp() { _pet = new PetAccessorMock(); _petManager = new PetManager(_pet); _pets = new List <Pet>(); _pets = _petManager.RetrieveAllPets(); }
public void InitializeComponents(IPetManager petManager) { foreach (var petComponent in petComponents) { petComponent.Init(petManager); } petManager.LoadData(); }
public BusinessLogicManager() { var databaseProvider = new DatabaseProvider(); this.customerManager = new CustomerManager(databaseProvider); this.petPackManager = new PetPackManager(databaseProvider); this.petWalkManager = new PetWalkManager(databaseProvider); this.petManager = new PetManager(databaseProvider); this.priceManager = new PriceManager(databaseProvider); }
public BusinessLogicManager(ICustomerManager customerManager , IPetPackManager petPackManager , IPetWalkManager petWalkManager , IPetManager petManager , IPriceManager priceManager) { this.customerManager = customerManager; this.petPackManager = petPackManager; this.petWalkManager = petWalkManager; this.petManager = petManager; this.priceManager = priceManager; }
private string _filename; // added on 3/12/19 by Matt H. public frmAddEditPet(IPetManager petManager = null) { //_pet = pet; InitializeComponent(); setEditable(); if (petManager == null) { petManager = new PetManager(); } _petManager = petManager; this.Title = "New Pet"; this.btnPetAction.Content = "Create"; }
public frmAddEditPet(Pet oldPet, IPetManager petManager = null, bool isEdit = false) { InitializeComponent(); _oldPet = oldPet; setOldPet(); //Overloads setEditable if (petManager == null) { petManager = new PetManager(); } _petManager = petManager; this.Title = "View Pet Record " + _oldPet.PetName; this.btnPetAction.Content = "Save"; setReadOnly(); if (isEdit) { setEditable(); this.Title = "Edit Pet Record " + _oldPet.PetName; } }
public virtual void Init(IPetManager _petManager) { petManager = _petManager; petManager.SubscibeToPetDataLoadedEvent(SetPetDatas); }
public HomeController(IOptions <AppSettings> settings, IPetManager manager) { _settings = settings.Value; _manager = manager; }
public override void Init(IPetManager _petManager) { base.Init(_petManager); _petManager.SubscibeToPetDataChangedEvent(Refresh); }
public PetController(IPetManager petManager) { PetManager = petManager; }
public RevenueService(IPetManager petManager, ITransManager transManager) { _petManager = petManager; _transManager = transManager; }
public PetsController(IPetManager petManager) { this.petManager = petManager; }