public void Should_Create_FeedstockQueryDto() { var feedstockCommandDtoTest = FeedstockQueryDto.New(_feedstockName, _status, _colorName, _measureName); Assert.NotNull(feedstockCommandDtoTest); Assert.Equal(_status, feedstockCommandDtoTest.Status); Assert.Equal(_feedstockName, feedstockCommandDtoTest.Name); Assert.Equal(_colorName, feedstockCommandDtoTest.ColorName); Assert.Equal(_measureName, feedstockCommandDtoTest.MeasureName); }
public static FeedstockQueryDto Map(Entities.Feedstock feedstock) { return(FeedstockQueryDto.New(feedstock.Name, StatusEnum.Disable, string.Empty, string.Empty)); }