Fixed tests, took out default data

This commit is contained in:
Emma Garland
2020-12-11 14:32:13 +00:00
parent 2c006ea99f
commit 67efe92858
2 changed files with 80 additions and 21 deletions

View File

@@ -237,6 +237,11 @@ namespace Umbraco.Web.BackOffice.Controllers
[MemberSaveValidation]
public async Task<ActionResult<MemberDisplay>> PostSave([ModelBinder(typeof(MemberBinder))] MemberSave contentItem)
{
if (contentItem == null)
{
throw new ArgumentNullException("The member content item was null");
}
// If we've reached here it means:
// * Our model has been bound
// * and validated