示例#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
     });
 }
 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));
     });
 }
 private void Post(Application application)
 {
     _browser.Post("/api/applications", with =>
     {
         with.Header("Content-Type", "application/json");
         with.Body(JsonConvert.SerializeObject(application));
     });
 }
示例#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
     };
 }