예제 #1
0
        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);
        }
예제 #2
0
 public static FeedstockQueryDto Map(Entities.Feedstock feedstock)
 {
     return(FeedstockQueryDto.New(feedstock.Name, StatusEnum.Disable, string.Empty, string.Empty));
 }