public static ShapeDto GetValidDtoWithRoutes() { var dto = GetValidDtoWithPackages(); dto.Routes = new List <RouteDto> { RouteTestFixtures.GetRouteIvDto(), new RouteDto { Abbreviation = "or", Name = "oraal" } }; return(dto); }
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); }
public static ProductDto GetDopamineDto() { var subst = new ProductSubstanceDto { Id = Guid.NewGuid().ToString(), Name = "dopamine", Quantity = 200, SortOrder = 1, Substance = "dopamine", UnitAbbreviation = "mg", UnitDivisor = 1000, UnitGroupAllowConversion = true, UnitGroupName = "massa", UnitIsReference = false, UnitMultiplier = 1 / 1000, UnitName = "milligram" }; var dto = new ProductDto { BrandName = "Dynatra", GenericName = "dopamine", DisplayName = "dopamine 200 mg (Dynatra) 5 mL infusievloeistof per ampul", Id = Guid.NewGuid().ToString(), Name = DisplayName, PackageAbbreviation = "amp", PackageName = "ampul", ProductCode = "1", Quantity = 5M, Routes = new List <RouteDto> { RouteTestFixtures.GetRouteIvDto() }, ShapeName = "infusievloeistof", Substances = new List <ProductSubstanceDto> { subst }, UnitAbbreviation = "mL", UnitDivisor = 1000, UnitGroupAllowConversion = true, UnitGroupName = "volume", UnitIsReference = false, UnitMultiplier = 1 / 1000, UnitName = "milliliter" }; return(dto); }