public void AddLunchAsync_DoesNotThrow() { var config = new Mock <IConfigurationManager>(); var repo = new LunchRepository(config.Object); var request = new LunchOptions(); //var response = await repo.AddLunchAsync(request); //Assert.AreEqual(request.SomeRequiredValue, response.SomeRequiredValue); }
Task <LunchOptions> ILunchService.AddLunchAsync(LunchOptions lunch) { throw new System.NotImplementedException(); }
Task <LunchOptions> ILunchRepository.AddLunchAsync(LunchOptions Lunch) { throw new System.NotImplementedException(); }
public async Task <LunchOptions> AddLunchAsync(LunchOptions lunch) { return(await _lunchRepository.AddLunchAsync(lunch)); }
public async Task <IHttpActionResult> AddLunchAsync([FromBody] LunchOptions lunch) { lunch.Id = _appRequestInfo.LunchId; return(Created(string.Empty, await _lunchService.AddLunchAsync(lunch))); }