Ejemplo n.º 1
0
        public void SDOrganizationCreate(List <SDOrganization> items, SDOrganization item)
        {
            var apiWrapper = GetWrapper <SDOrganization>();

            apiWrapper.EntityKeyName = "SDOrganization";
            apiWrapper.EntitySetName = "SDOrganizations";
            if (item == null && items == null)
            {
                apiWrapper.Item = SDOrganizationSample();
            }
            else
            {
                apiWrapper.Item  = item;
                apiWrapper.Items = items;
            }
            var resultCreate = Services.ApiCreate(url, apiWrapper);

            Assert.IsTrue(resultCreate == "ok");
            if (apiWrapper.Item != null)
            {
                apiWrapper.ItemKey = apiWrapper.Item.GuidOrganization;
                var existent = Services.ApiGetByKey <SDOrganization>(url, apiWrapper);
                Assert.IsNotNull(existent);
            }
        }
Ejemplo n.º 2
0
        public SDOrganization SDOrganizationSample()
        {
            SDOrganization item = new SDOrganization();

            item.GuidOrganization = Guid.NewGuid();

            item.FullName = Utils.GetString(10);



            return(item);
        }