Last active
March 19, 2020 12:02
-
-
Save naeemaei/d0bfe442f6637504d0f3021f1699fced to your computer and use it in GitHub Desktop.
Dependency of invoice classes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create invoice items | |
public class InvoiceBuilder | |
{ | |
private InvoiceCalculator InvoiceCalculator { get; set; } | |
public InvoiceBuilder() | |
{ | |
InvoiceCalculator = new InvoiceCalculator(); | |
} | |
} | |
// This class calculate each invoice | |
public class InvoiceCalculator | |
{ | |
public InvoiceCalculator() | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment