The NewsScope enum defines the different kinds of news that our service supports. Let's add it by following these few steps:
- In the News project, create a new folder called Services.
- In the Services folder, add a new file called NewsScope.cs.
- Add the following code to that file:
namespace News.Services
{
public enum NewsScope
{
Headlines,
Local,
Global
}
}
To be able to use this enum in a switch expression, we'll need to enable C# 8 for the project.