public void testSetupMSSQL() { _hr = new HouseKeepingRequestAccessorMock(); _houseKeepingRequestManager = new HouseKeepingRequestManagerMSSQL(_hr); _houseKeepingRequests = new List <HouseKeepingRequest>(); _houseKeepingRequests = _houseKeepingRequestManager.RetrieveAllHouseKeepingRequests(); }
/// <summary> /// Author: Dalton Cleveland /// Created : 3/27/2019 /// This Constructor requires a HouseKeepingRequest and an instance of the IHouseKeepingRequestManager /// </summary> public DeactivateHouseKeepingRequest(HouseKeepingRequest houseKeepingRequest, IHouseKeepingRequestManager houseKeepingRequestManager) { InitializeComponent(); _houseKeepingRequestManager = houseKeepingRequestManager; _houseKeepingRequest = houseKeepingRequest; txtTitleContent.Text = "Are you sure you want to delete this HouseKeepingRequest?"; txtBodyContent.Text = "Deleting this Item will remove it from our system. If you are unsure whether you should delete this please click cancel and ask your superior"; }
/// <summary> /// Author: Dalton Cleveland /// Created : 3/27/2019 /// This constructor is used for Reading and Updating a HouseKeepingRequest /// </summary> public CreateHouseKeepingRequest(HouseKeepingRequest existingHouseKeepingRequest, IHouseKeepingRequestManager houseKeepingRequestManager) { InitializeComponent(); _houseKeepingRequestManager = houseKeepingRequestManager; _existingHouseKeepingRequest = existingHouseKeepingRequest; txtWorkingEmployee.Equals(null); populateFormReadOnly(); }
/// <summary> /// Author: Dalton Cleveland /// Created : 3/27/2019 /// This constructor is used for Creating a HouseKeepingRequest /// Initializes connections to our HouseKeepingRequestManager /// </summary> public CreateHouseKeepingRequest(IHouseKeepingRequestManager houseKeepingRequestManager) { InitializeComponent(); _houseKeepingRequestManager = houseKeepingRequestManager; chkActive.IsEnabled = false; chkActive.IsChecked = true; chkActive.Visibility = Visibility.Hidden; txtWorkingEmployee.IsEnabled = false; txtWorkingEmployee.Equals(null); _existingHouseKeepingRequest = null; }