public static async Task <CreateWorkOrderResult> CreateWorkOrderThroughPlato(string source, string site, string zone)
        {
            using (var client = ControllerTestsHelper.GetClient())
            {
                var apiVersion = "1.0";

                var jsonBody = GetPlatoOverviewJsonAsString(source, site, zone);
                var response = await client.PostAsync(string.Format("api/workorders/create?api-version={0}", apiVersion), new StringContent(jsonBody, Encoding.UTF8, "application/json"));

                var id     = response.Headers.Location.GetId();
                var eTag   = response.Headers.ETag.Tag;
                var result = new CreateWorkOrderResult(id, eTag);
                return(await Task.FromResult(result));
            }
        }
        public static async Task <CreateWorkOrderResult> CreateWorkOrder(string userCreated)
        {
            using (var client = ControllerTestsHelper.GetClient())
            {
                var apiVersion = "1.0";

                var body = new CreateWorkOrderFromBody()
                {
                    Operation   = "anyOperation",
                    Department  = "any",
                    Site        = "any",
                    UserCreated = userCreated
                };

                var jsonBody = JsonConvert.SerializeObject(body);

                var response = await client.PostAsync(string.Format("api/workorders?api-version={0}", apiVersion), new StringContent(jsonBody, Encoding.UTF8, "application/json"));

                var id     = response.Headers.Location.GetId();
                var eTag   = response.Headers.ETag.Tag;
                var result = new CreateWorkOrderResult(id, eTag);
                return(await Task.FromResult(result));
            }
        }