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

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