public void put_should_update_page()
        {
            // Arrange
            DateTime version1Date = DateTime.Today.AddDays(-1);             // stops the getlatestcontent acting up when add+update are the same time

            Page page = new Page();

            page.Title      = "Hello world";
            page.Tags       = "tag1, tag2";
            page.CreatedOn  = version1Date;
            page.ModifiedOn = version1Date;
            PageContent pageContent = _pageRepositoryMock.AddNewPage(page, "Some content1", "editor", version1Date);

            PageViewModel model = new PageViewModel(pageContent.Page);

            model.Title      = "New title";
            model.Content    = "Some content2";
            model.ModifiedOn = DateTime.UtcNow;

            // Act
            _pagesController.Put(model);

            // Assert
            Assert.That(_pageService.AllPages().Count(), Is.EqualTo(1));

            PageViewModel actualPage = _pageService.GetById(1, true);

            Assert.That(actualPage.Title, Is.EqualTo("New title"));
            Assert.That(actualPage.Content, Is.EqualTo("Some content2"));
        }