public ITentPostType FromType(ITentPostType postType, string subType) { Ensure.Argument.IsNotNull(postType, nameof(postType)); Ensure.Argument.IsNotNullOrWhiteSpace(subType, nameof(subType)); // Create a new Post Type with the provided SubType. return new TentPostType(postType.Type, subType); }
public bool Equals(ITentPostType other) { return this.ToString() == other.ToString(); }