Beispiel #1
0
 public void testSetUp()
 {
     _pet        = new PetAccessorMock();
     _petManager = new PetManager(_pet);
     _pets       = new List <Pet>();
     _pets       = _petManager.RetrieveAllPets();
 }
Beispiel #2
0
    public void InitializeComponents(IPetManager petManager)
    {
        foreach (var petComponent in petComponents)
        {
            petComponent.Init(petManager);
        }

        petManager.LoadData();
    }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 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;
 }
Beispiel #5
0
        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";
        }
Beispiel #6
0
        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;
            }
        }
Beispiel #7
0
 public virtual void Init(IPetManager _petManager)
 {
     petManager = _petManager;
     petManager.SubscibeToPetDataLoadedEvent(SetPetDatas);
 }
Beispiel #8
0
 public HomeController(IOptions <AppSettings> settings, IPetManager manager)
 {
     _settings = settings.Value;
     _manager  = manager;
 }
Beispiel #9
0
 public override void Init(IPetManager _petManager)
 {
     base.Init(_petManager);
     _petManager.SubscibeToPetDataChangedEvent(Refresh);
 }
Beispiel #10
0
 public PetController(IPetManager petManager)
 {
     PetManager = petManager;
 }
Beispiel #11
0
 public RevenueService(IPetManager petManager, ITransManager transManager)
 {
     _petManager   = petManager;
     _transManager = transManager;
 }
Beispiel #12
0
 public PetsController(IPetManager petManager)
 {
     this.petManager = petManager;
 }