in FMLab/ODataConsoleApplication/Program.cs [53:107]
static void Main(string[] args)
{
string ODataServiceEndpoint = "https://usncax1aos.cloud.onebox.dynamics.com/data";
Uri dynODataURI = new Uri(ODataServiceEndpoint, UriKind.Absolute);
//Creates a DataServiceContext class which encapsulates operations that are supported by the OData endpoint
context = new Resources(dynODataURI);
//Authenticate the user
//AuthenticationHelper.PerformAuthentication(context);
Program.InitializeContextObject(context);
CreateExchange();
Console.WriteLine("-------------------------------------------------------------------");
Console.WriteLine("Query all the customers in Fleet Management. Enter to start ...");
Console.WriteLine("-------------------------------------------------------------------");
Console.ReadLine();
GetAllCustomers();
Console.WriteLine();
Console.WriteLine("-------------------------------------");
Console.WriteLine("Create a new customer. Enter to start");
Console.WriteLine("-------------------------------------");
Console.ReadLine();
Customer newCustomer = CreateCustomer();
Console.WriteLine();
Console.WriteLine("--------------------------------------------------------------------");
Console.WriteLine("Create a new reservation for the customer. Enter to start ...");
Console.WriteLine("--------------------------------------------------------------------");
Console.ReadLine();
CreateReservation(newCustomer);
Console.ForegroundColor = ConsoleColor.White;
Console.BackgroundColor = ConsoleColor.Black;
Console.WriteLine();
Console.WriteLine("***************************************************");
Console.WriteLine("* *");
Console.WriteLine("You have successfully completed, \t\t\n 1. Creating a new customer \t\t\t\n 2. Creating a new reservation for that customer. \n " +
"Please refer back to Hands on Lab documentation to continue \n Press Enter to close this application \t");
Console.WriteLine("* *");
Console.WriteLine("***************************************************");
Console.ReadLine();
}