public void GetTest() { GetAirplaneCommand f = CommandFactory.GetAirplaneCommand(); f.Execute(); Assert.NotNull(f.GetResult()); }
public ActionResult <IEnumerable <Entity> > Get() { try { GetAirplaneCommand f = CommandFactory.GetAirplaneCommand(); f.Execute(); return(Ok(f.GetResult().ToList())); } catch (DbErrorException ex) { return(BadRequest(new { ex.Message })); } catch (Exception) { return(null); } }