public void Save() { if (NewMaterial == null || materialName == "") return; if (materialName == selectedImage) //ncrunch: no coverage start if (GetDialogResultToRenameMaterial()) MaterialName += "Material"; else return; if(MaterialList.Contains(MaterialName)) if (!GetDialogResultToSaveMaterial()) return; var metaDataCreator = new ContentMetaDataCreator(); ContentMetaData contentMetaData = metaDataCreator.CreateMetaDataFromMaterial(materialName, NewMaterial); service.UploadContent(contentMetaData); }
public void Save() { if (NewMaterial == null || String.IsNullOrEmpty(materialName)) return; var metaDataCreator = new ContentMetaDataCreator(); ContentMetaData contentMetaData = metaDataCreator.CreateMetaDataFromMaterial(materialName, NewMaterial); service.UploadContent(contentMetaData); service.ContentUpdated += SendSuccessMessageToLogger; }