Esempio n. 1
0
        public void GivenAllDataEditsAreClearedForProject(long pId)
        {
            // Requests for Undo All Edits & Get All Edits
            dynamic undoAllEditsRequest = new JObject();

            undoAllEditsRequest.ProjectId = pId;
            undoAllEditsRequest.Undo      = true;
            undoAllEditsRequest.DataEdit  = null;

            dynamic getAllEditsRequest = new JObject();

            getAllEditsRequest.ProjectId = pId;
            getAllEditsRequest.AssetId   = -1;

            // Undo all edits
            editDataRequester.DoValidRequest(undoAllEditsRequest);

            // Get all edits and confirm they have been removed.
            var allEdits = getEditDataRequester.DoValidRequest(getAllEditsRequest);

            Assert.True(!((List <ProductionDataEdit>)allEdits.dataEdits).Any());
        }