Informedica.GenForm.TestFixtures.Fixtures.ShapeTestFixtures.CreateIvFluidShape C# (CSharp) Method

CreateIvFluidShape() public static method

public static CreateIvFluidShape ( ) : Shape
return Shape
        public static Shape CreateIvFluidShape()
        {
            return Shape.Create(GetIvFluidDto());
        }

Usage Example

Example #1
0
        public static Product CreateProductWithOneSubstAndOneRoute()
        {
            var dto     = GetProductDtoWithNoSubstances();
            var shape   = ShapeTestFixtures.CreateIvFluidShape();
            var package = PackageTestFixtures.CreatePackageAmpul();
            var unit    = UnitTestFixtures.CreateUnitMililiter();
            var product = Product.Create(dto)
                          .Shape(shape)
                          .Package(package)
                          .Quantity(unit, 5M)
                          .Substance(1, SubstanceTestFixtures.CreateSubstanceWithoutGroup(), 200M,
                                     UnitTestFixtures.CreateUnitMilligram())
                          .Route(RouteTestFixtures.CreateRouteIv());

            return(product);
        }