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);
 }
Пример #2
0
 Task <LunchOptions> ILunchService.AddLunchAsync(LunchOptions lunch)
 {
     throw new System.NotImplementedException();
 }
Пример #3
0
 Task <LunchOptions> ILunchRepository.AddLunchAsync(LunchOptions Lunch)
 {
     throw new System.NotImplementedException();
 }
Пример #4
0
 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)));
 }