public BuildParcelChain() { _rootChain = new InsuranceDepartment(); IDepartmentChain dep2 = new MailDepartment(); IDepartmentChain dep3 = new RegularDepartment(); IDepartmentChain dep4 = new HeavyDepartment(); _rootChain.SetNext(dep2); dep2.SetNext(dep3); dep3.SetNext(dep4); }
public MailDepartmentTest() { _mailDepartment = new MailDepartment(); }
public MailDepartmentTest() { _insuranceDepartment = new Mock <IInsuranceDepartment>(); _mailDepartment = new MailDepartment(_insuranceDepartment.Object); }