示例#1
0
        public void OrderProcessorTest_NewOrder()
        {
            var product = new GenomicsProduct()
            {
                GenomicsProductId = 266
            };

            product.Samples.Add(new GenomicsSamples()
            {
                AnimalId    = 1,
                AnimalId2   = "2",
                BarcodeId   = "abc123",
                BatchNumber = "batch",
                BirthStatus = "TWIN",
                BirthDate   = new DateTime?(new DateTime(2018, 4, 1))
            });

            var genomicsOrder = new GenomicsOrder()
            {
                CustId      = 500005,
                Notes       = "This is a test note",
                OrderDate   = new DateTime(2018, 4, 1),
                OrderNumber = "1234",
                UserId      = 229,
                OrderOrigin = OrderOrigin.Dairy,
                LabId       = 3
            };


            genomicsOrder.Products.Add(product);

            var orderProc = new OrderProcessor();

            orderProc.AddGenomicsOrder(genomicsOrder);
        }