Exemplo n.º 1
0
        public void AddChangeSetsViewTest()
        {
            Response apiResponse = new Response();
            ChangeSetResponseModel sampleChangeSet = new ChangeSetResponseModel();

            sampleChangeSet.ChangeSetId = "XYZ";
            sampleChangeSet.ResourceId  = "/sites/test-site";
            apiResponse.AddChangeSets(new List <ChangeSetResponseModel> {
                sampleChangeSet
            });
            Assert.NotEmpty(apiResponse.Dataset);
            Assert.Equal <RenderingType>(RenderingType.ChangeSets, apiResponse.Dataset.FirstOrDefault().RenderingProperties.Type);
        }