public void WhenCommandIsReceived_PresentationIsDeletedFromRepository()
        {
            var doc = new PresentationDocument {Id = "presentations/1", Title = "Test"};
            var entity = new Presentation(doc);
            var presentationRepositoryMock = new Mock<IPresentationRepository>();
            var logger = new Mock<ILogger>();
            presentationRepositoryMock.Setup(x => x.Load("presentations/1`")).Returns(entity);
            presentationRepositoryMock.Setup(x => x.Remove(entity));

            var handler = new DeletePresentationCommandHandler(logger.Object, presentationRepositoryMock.Object);
            handler.Handle(new DeletePresentationCommand("presentations/1"));
            presentationRepositoryMock.Verify(x => x.Remove(It.IsAny<Presentation>()), Times.Once());
        }
 private PresentationDocument GetTestPresentation(string id, string userid)
 {
     var presentationdoc = new PresentationDocument
                               {
                                   Id = id,
                                   LastModified = new DateTime(2012, 1, 1, 11, 0, 0),
                                   Title = "Presentation 1",
                                   UserId = userid,
                                   Pages = new List<Page>
                                               {
                                                   new Page
                                                       {
                                                           Id = "1",
                                                           Content = "<div>Content</div>",
                                                           CSS = "step",
                                                           Rotate = "0",
                                                           Scale = "0",
                                                           X = "0",
                                                           Y = "0",
                                                           Z = "0"
                                                       }
                                               }
                               };
     return presentationdoc;
 }