public void Should_Create_MeasureQueryDto() { var measureCommandDtoTest = MeasureQueryDto.New(_measureName, _status); Assert.NotNull(measureCommandDtoTest); Assert.Equal(_status, measureCommandDtoTest.Status); Assert.Equal(_measureName, measureCommandDtoTest.Name); }
public static MeasureQueryDto Map(Measure measure) { return(MeasureQueryDto.New(measure.Name, measure.Status)); }