public void ShouldPostDelete()
        {
            var libraryCard = new LibraryCard();
            Expect.Call(libraryCardRepositoryMock.Get(12)).Return(libraryCard);

            mocks.ReplayAll();
            var result = (RedirectToRouteResult)controller.Delete(12);
            mocks.VerifyAll();

            Assert.True(result.RouteValues.ContainsValue("Index"));
        }
        public void ShouldGetEdit()
        {
            var libraryCard = new LibraryCard();
            Expect.Call(libraryCardRepositoryMock.Get(12)).Return(libraryCard);

            mocks.ReplayAll();
            var result = controller.Edit(12);
            mocks.VerifyAll();

            Assert.IsType(typeof(LibraryCardViewModel), result.Model);
        }
 public void CanCorrectlyMapLibraryCard(LibraryCard libraryCard)
 {
     new PersistenceSpecification<LibraryCard>(UnitOfWorkSession)
         .VerifyTheMappings(libraryCard);
 }