public async Task ChangePictureAsyncWithEmptyUri_ShouldThrowArgumentNullException()
        {
            MapperInitializer.InitializeMapper();
            var context = ApplicationDbContextInMemoryFactory.InitializeContext();

            await this.SeedDataAsync(context);

            var pictureService = new PictureService(context);
            var picture        = await pictureService.GetPictureAsync();

            picture.Uri = "  ";

            await Assert.ThrowsAsync <ArgumentNullException>(async() =>
            {
                await pictureService.ChangePictureAsync(picture);
            });
        }
        public async Task ChangePictureAsync_ShouldChangeSuccessfully()
        {
            MapperInitializer.InitializeMapper();
            var context = ApplicationDbContextInMemoryFactory.InitializeContext();

            await this.SeedDataAsync(context);

            var pictureService = new PictureService(context);
            var picture        = await pictureService.GetPictureAsync();

            picture.Uri = "Uri 2";
            await pictureService.ChangePictureAsync(picture);

            var expectedResult        = "Uri 2";
            var actualResultAsPicture = await context.Pictures.FindAsync(1);

            var actualResult = actualResultAsPicture.Uri;

            Assert.True(expectedResult == actualResult);
        }