public void WhenCurrentLatitude_ShouldMapToLatitude() { // Arrange var input = _fixture.Create <DriveCustomerToTrainStation>(); // Act var sut = new DriveCustomerToTrainStationMapper(); var actual = sut.MapToCustomerLocation(input); // Assert actual.Latitude.Should().Be(input.CurrentLatitude); }
public void WhenCustomerId_ShouldMapToId() { // Arrange var input = _fixture.Create <DriveCustomerToTrainStation>(); // Act var sut = new DriveCustomerToTrainStationMapper(); var actual = sut.MapToCustomerId(input); // Assert var expected = new Id <Customer>(input.CustomerId); actual.Should().Be(expected); }