public void CanProcessIPhysicalProductType() { PhysicalProductTypeProcessor proc = new PhysicalProductTypeProcessor(); Product book = new Product("socme", new BookProductType()); Assert.True(proc.CanProcess(book)); Product video = new Product("asf", new VideoProductType()); Assert.True(proc.CanProcess(video)); }
public void FailsOnProcessingOtherProductTpes() { PhysicalProductTypeProcessor proc = new PhysicalProductTypeProcessor(); Product bookMembership = new Product("book membership", new BookMembershipProductType()); Assert.False(proc.CanProcess(bookMembership)); }