Ejemplo n.º 1
0
 private static Resource GetResourceModel(Locale locale, string resourceKey, string resourceSet, string value, Application application)
 {
     return(new Resource
     {
         LocaleId = locale.LocaleId,
         Locale = locale,
         ResourceKey = resourceKey,
         ResourceSet = resourceSet,
         Value = value,
         Application = application,
         ApplicationId = application.ApplicationId
     });
 }
Ejemplo n.º 2
0
 private void Delete(Application application)
 {
     _browser.Delete("/api/applications", with =>
     {
         with.Query("id", "1");
         with.Header("Content-Type", "application/json");
         with.Body(JsonConvert.SerializeObject(application));
     });
 }
Ejemplo n.º 3
0
 private void Post(Application application)
 {
     _browser.Post("/api/applications", with =>
     {
         with.Header("Content-Type", "application/json");
         with.Body(JsonConvert.SerializeObject(application));
     });
 }
Ejemplo n.º 4
0
 private static Resource GetResourceModel(Locale locale, string resourceKey, string resourceSet, string value, Application application)
 {
     return new Resource
     {
         LocaleId = locale.LocaleId,
         Locale = locale,
         ResourceKey = resourceKey,
         ResourceSet = resourceSet,
         Value = value,
         Application = application,
         ApplicationId = application.ApplicationId
     };
 }