public void MapFromDomainEntity_NullContent_ReturnNull() { //Act var response = FacilityType.MapFromDomainEntity(null); //Assert Assert.IsNull(response); }
public void MapFromDomainEntity_ValidEntity_ReturnDTOEntity() { //Arrange var facilityType = new FacilityTypeDTO() { Id = Guid.NewGuid(), Value = "Headquarters", Position = 0 }; var response = FacilityType.MapFromDomainEntity(facilityType); Assert.IsNotNull(response); Assert.AreEqual(facilityType.Id, response.Id); Assert.AreEqual(facilityType.Value, response.Value); Assert.AreEqual(facilityType.Position, response.Position); }