public void Factory_Should_Return_InsuranceDepartment_For_Parcel() { DepartmentFactory f = new DepartmentFactory(); var parcel = new Parcel(1001, 1); Assert.Equal(typeof(InsuranceDepartment), f.Get(parcel).GetType()); }
public void Factory_Should_Return_HeavyDepartment_For_Parcel() { DepartmentFactory f = new DepartmentFactory(); var parcel = new Parcel(1, 11); Assert.Equal(typeof(HeavyDepartment), f.Get(parcel).GetType()); }