public void AddEmployee() { presenter.EmpId = 123; presenter.Name = "Joe"; presenter.Address = "314 Elm"; presenter.IsHourly = true; presenter.HourlyRate = 25; presenter.AddEmployee(); Assert.AreEqual(1, container.Transactions.Count); Assert.IsTrue(container.Transactions[0] is AddHourlyEmployee); }
private void addEmployeeButton_Click( object sender, System.EventArgs e) { presenter.AddEmployee(); this.Close(); }