public void Should_Success_Intantiate()
        {
            FabricSKUAutoCreateFormDto dto = new FabricSKUAutoCreateFormDto()
            {
                Construction = "Construction",
                Grade        = "A",
                ProcessType  = "ProcessType",
                UOM          = "UOM",
                Warp         = "Warp",
                Weft         = "Weft",
                Width        = "Width",
                WovenType    = "WovenType",
                YarnType     = "YarnType"
            };

            Assert.Equal("A", dto.Grade);
            Assert.Equal("Construction", dto.Construction);
            Assert.Equal("A", dto.Grade);
            Assert.Equal("ProcessType", dto.ProcessType);
            Assert.Equal("UOM", dto.UOM);
            Assert.Equal("Warp", dto.Warp);
            Assert.Equal("Weft", dto.Weft);
            Assert.Equal("Width", dto.Width);
            Assert.Equal("WovenType", dto.WovenType);
            Assert.Equal("YarnType", dto.YarnType);
        }
Exemple #2
0
        public void AutoCreateSKU_Return_Success()
        {
            //Setup
            PackingInventoryDbContext dbContext = GetDbContext(Entity);

            //act
            var service = GetService(GetServiceProvider(dbContext).Object, dbContext);
            var form    = new FabricSKUAutoCreateFormDto()
            {
                ProductionOrderNo = "TEST12345"
            };
            FabricSKUIdCodeDto result = service.AutoCreateSKU(form);

            //assert
            Assert.NotNull(result);
        }