Beispiel #1
0
        public void CanGetAlbumById()
        {
            var album    = new Album().SetId(123);
            var daoAlbum = new DaoStub <Album>().AddEntity(album);
            var model    = new AlbumManager(daoAlbum, new Mock <IEntityValidator>().Object);

            model.GetAlbumById(123).Should().Be.EqualTo(album);
        }