public void AddServiceCharge() { int empId = 2; AddHourlyEmployee t = new AddHourlyEmployee( empId, "Bill", "Home", 15.25, database); t.Execute(); Employee e = database.GetEmployee(empId); Assert.IsNotNull(e); UnionAffiliation af = new UnionAffiliation(); e.Affiliation = af; int memberId = 86; // Maxwell Smart database.AddUnionMember(memberId, e); ServiceChargeTransaction sct = new ServiceChargeTransaction( memberId, new DateTime(2005, 8, 8), 12.95, database); sct.Execute(); ServiceCharge sc = af.GetServiceCharge(new DateTime(2005, 8, 8)); Assert.IsNotNull(sc); Assert.AreEqual(12.95, sc.Amount, .001); }
public void AddServiceCharge(ServiceCharge sc) { charges[sc.Time] = sc; }
public void AddServiceCharge(ServiceCharge serviceCharge) { serviceCharges.Add(serviceCharge.Time, serviceCharge); }