public void Setup() { _greetingService = new GreetingService(); _dbRepository = SetupDBRepository(); _greetings = new List <IGreeting>(); HelloGreeting Hey = new HelloGreeting { Id = 0, Name = "Hello World", IsNice = true }; _greetings.Add(Hey); }
public void Setup() { _greetingService = new GreetingService(); _dbRepository = SetupDBRepository(); _greetings = new List <IGreeting>(); HelloGreeting Hey = new HelloGreeting { Id = 0, Name = "Hello World", IsNice = true }; _greetings.Add(Hey); _client = new HttpClient { BaseAddress = new Uri(serviceURL) }; }
//Faked Implementation of Get public virtual IEnumerable <IGreeting> Get() { try { List <IGreeting> greetingList = new List <IGreeting>(); HelloGreeting Hey = new HelloGreeting { Id = 0, Name = "Hello World", IsNice = true }; greetingList.Add(Hey); return(greetingList); } catch (Exception e) { //Catch Exception } return(new List <IGreeting>()); }
public virtual IGreeting Insert(IGreeting entity) { IGreeting greeting = new HelloGreeting(); return(greeting); }
public virtual IGreeting GetById(int id) { IGreeting greeting = new HelloGreeting(); return(greeting); }