public void GetWaiterInfo() { RestaurantAdminController controller = new RestaurantAdminController(); var waiter = controller.GetWaiter(int.Parse(WaitersDropDown.SelectedValue)); WaiterID.Text = waiter.WaiterID.ToString(); FirstName.Text = waiter.FirstName; LastName.Text = waiter.LastName; Phone.Text = waiter.Phone; Address.Text = waiter.Address; HireDate.Text = waiter.HireDate.ToShortDateString(); if (waiter.ReleaseDate.HasValue) ReleaseDate.Text = waiter.ReleaseDate.Value.ToShortDateString(); }
private void ThenTheWaiterExists(int waiterId) { var sut = new RestaurantAdminController(); var actual = sut.GetWaiter(waiterId); Assert.NotNull(actual); }