Пример #1
0
        public void TestCurrentUserPicureMethod()
        {
            var userPictureService = new UserPictureService(pictureRepo.Object, obituaryRepo.Object);
            var picture            = userPictureService.CurrentUserPicure("pictureId3");

            var viewModel = new UserPictureViewModel
            {
                PictureId       = "pictureId3",
                PictureFilePath = "picFilePath3"
            };

            Assert.Equal(viewModel.PictureId, picture.PictureId);
            Assert.Equal(viewModel.PictureFilePath, picture.PictureFilePath);
        }