public void MapFrom_Should_ReturnCorrectInstanceOf_TheatreViewModel() { //Arrange var sut = new SearchTheatreViewModelMapper(); var theatre = new SearchTheatre { Id = Guid.NewGuid(), Name = "testName", Location = "testLocation", AverageRating = 5, }; //Act var result = sut.MapFrom(theatre); //Assert Assert.IsInstanceOfType(result, typeof(TheatreViewModel)); }
public void MapFrom_Should_Return_CorrectInstanceOf_TheatreViewModel() { //Arrange var sut = new SearchTheatreViewModelMapper(); var theatre = new SearchTheatre { Id = Guid.NewGuid(), Name = "testName", Location = "testLocation", AverageRating = 5, }; //Act var result = sut.MapFrom(theatre); //Assert Assert.AreEqual(result.Id, theatre.Id); Assert.AreEqual(result.Name, theatre.Name); Assert.AreEqual(result.Location, theatre.Location); Assert.AreEqual(result.AverageRating, theatre.AverageRating); }