Пример #1
0
        public void RoomType()
        {
            //Arrange
            var type = new Room();

            //Act
            var photoToRoom = new PhotoToRoom {
                Room = type
            };

            //Assert
            Assert.AreSame(type, photoToRoom.Room);
        }
Пример #2
0
        public void Photo()
        {
            //Arrange
            var photo = new Photo();

            //Act
            var photoToRoom = new PhotoToRoom
            {
                Photo = photo
            };

            //Assert
            Assert.AreSame(photo, photoToRoom.Photo);
        }
Пример #3
0
        public void Create_And_Fill_Properties()
        {
            //Arrange
            var photoToRoom = new PhotoToRoom
            {
                PhotoId = 1,
                RoomId  = 1
            };

            //Act
            var photoId = photoToRoom.PhotoId;
            var roomId  = photoToRoom.RoomId;

            //Assert
            Assert.Multiple(() =>
            {
                Assert.IsTrue(photoId == 1);
                Assert.IsTrue(roomId == 1);
            });
        }