public void RoomType() { //Arrange var type = new Room(); //Act var photoToRoom = new PhotoToRoom { Room = type }; //Assert Assert.AreSame(type, photoToRoom.Room); }
public void Photo() { //Arrange var photo = new Photo(); //Act var photoToRoom = new PhotoToRoom { Photo = photo }; //Assert Assert.AreSame(photo, photoToRoom.Photo); }
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); }); }