/// <summary> /// Creates a new Preview. /// </summary> /// <param name="preview">The Preview to create.</param> /// <returns>The created Preview with the key.</returns> public Preview Post(Preview preview) { m_service.SavePreview(preview); return(preview); }
public void SavePreview_Null_Exception() { ExceptionAssert.IsThrowing(new ArgumentNullException("preview"), () => { m_target.SavePreview(null); }); }