/// <summary> /// Francis Mingomba /// Created: 2019/04/03 /// /// </summary> /// <param name="callingWindow">Ref to class invoking form</param> /// <param name="employee">current employee</param> /// <param name="resortVehicle">Vehicle passed in (optional)</param> /// <param name="editMode">enable/disable editMode (optional)</param> public FrmManageShuttleVehicle(object callingWindow, Employee employee, ResortVehicle resortVehicle = null, bool editMode = false) { _resortVehicleManager = new ResortVehicleManager(); _callingWindow = callingWindow; _resortVehicle = resortVehicle; _employee = employee; _isEditMode = editMode; InitializeComponent(); SetupWindow(); }
public void Setup() { _resortVehicleManager = new ResortVehicleManager(new MockResortVehicleAccessor()); _goodResortVehicle = new ResortVehicle() { Id = 0, Make = "", Model = "", Year = 1990, License = "IA 111", Mileage = 0, Capacity = 0, Color = "", PurchaseDate = DateTime.Now, Description = "", Active = true, DeactivationDate = null, Available = true, ResortVehicleStatusId = "", ResortPropertyId = 0 }; int userId = 0; var roles = new List <Role>() { new Role() { RoleID = _roles.Admin.ToString() } }; _goodUser = new Employee() { EmployeeID = userId, FirstName = "firstName", LastName = "lastName", EmployeeRoles = roles }; }
public FrmBrowseShuttleVehicles() { _resortVehicleManager = new ResortVehicleManager(); InitializeComponent(); }