Created
November 5, 2014 19:43
-
-
Save SuperJMN/aa2cd20da38a705df7c3 to your computer and use it in GitHub Desktop.
MenuOption2
This file contains 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
public class Course : ValueObject<Course> | |
{ | |
private string name; | |
private int defaultPriority; | |
public Course(string name, int defaultPriority) | |
{ | |
this.name = name; | |
this.defaultPriority = defaultPriority; | |
} | |
public int DefaultPriority | |
{ | |
get { return defaultPriority; } | |
private set { defaultPriority = value; } | |
} | |
public string Name | |
{ | |
get { return name; } | |
} | |
} |
This file contains 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
public class Product : Entity<Guid> | |
{ | |
private readonly string name; | |
public Product(string name) : base(Guid.NewGuid()) | |
{ | |
this.name = name; | |
} | |
public string Name | |
{ | |
get { return name; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment