Exemplo n.º 1
0
 public override ControllerResponse Invoke()
 {
     try
     {
         return(new Json(_modelFactory.Create("Hello from Simplify.Web API example application")));
     }
     catch (Exception e)
     {
         return(StatusCode(500, e.Message));
     }
 }
Exemplo n.º 2
0
 public void GenericTools_Factory()
 {
     MakeSure.That(SampleModelFactory.Create()).IsNot(null);
     MakeSure.That(SampleModelFactory.Create(model => model.Age = 17).Age).Is(17);
 }