Beispiel #1
0
        public void Url_ShouldBeSetAndGottenCorrectly(string testUrl)
        {
            //Arrange && Act
            var imageUrl = new Models.Stories.StoryImageUrl {
                Url = testUrl
            };

            //Assert
            Assert.AreEqual(testUrl, imageUrl.Url);
        }
Beispiel #2
0
        public void Id_ShouldBeSetAndGottenCorrectly(string testId)
        {
            //Arrange && Act
            var imageUrl = new Models.Stories.StoryImageUrl {
                Id = Guid.Parse(testId)
            };

            //Assert
            Assert.AreEqual(testId, imageUrl.Id.ToString());
        }
Beispiel #3
0
        public void StoryId_ShouldBeSetAndGottenCorrectly()
        {
            //Arrange
            var testId = Guid.NewGuid();

            //Act
            var imageUrl = new Models.Stories.StoryImageUrl {
                StoryId = testId
            };

            //Assert
            Assert.AreEqual(testId, imageUrl.StoryId);
        }
Beispiel #4
0
        public void Story_ShouldBeSetAndGottenCorrectly()
        {
            //Arrange
            var story = new Models.Stories.Story();

            //Act
            var imageUrl = new Models.Stories.StoryImageUrl {
                Story = story
            };

            //Assert
            Assert.AreSame(story, imageUrl.Story);
        }