static void Main(string[] args) { //Creating entry to table Console.WriteLine((UserRepo.CreateEntity("test", "tester1", AzureRepo.AuthTable()))?"user created":"User failed to create"); //Retrieving entry from table foreach (var item in UserRepo.RetrieveUsers(AzureRepo.AuthTable())) { Console.WriteLine(item.RowKey); } Console.ReadLine(); }
public static IMovieRepo GetMovieRepo(string repoType) { IMovieRepo movieRepo = null; switch (repoType) { case "Azure": movieRepo = new AzureRepo(); break; case "AWS": movieRepo = new AWSRepo(); break; case "SQL": movieRepo = new SQLRepo(); break; default: throw new ArgumentException("Invalid Repo Type"); } return(movieRepo); }