public void OnTestInitialize()
        {
            _productMapId = new ProductMapId(Guid.NewGuid());
            _shop = new global::Domain.Shop.Shop(new ShopId(Guid.NewGuid()));

            _shopProductMap = new ShopProductMap(
                _productMapId,
                _shop,
                ShopProductMapType.Order
            );
        }
        public void OnTestInitialize()
        {
            _productMapId = new ProductMapId(Guid.NewGuid());
            _route = new global::Domain.Route.Route(new RouteName("RN"));

            _routeProductMap = new RouteProductMap(
                _productMapId,
                _route,
                RouteProductMapType.WarehouseIssue
            );
        }
        public ShopProductMap(ProductMapId id, Domain.Shop.Shop shop, string type)
            : base(id)
        {
            ShopProductMapType sType;

            if (!Enum.TryParse(type, true, out sType))
            {
                throw new WrongShopProductMapTypeException("Wrong shop product map type.", "ShopProductMapType");
            }

            Type = sType;
            Shop = shop;
        }
        public RouteProductMap(ProductMapId id, Domain.Route.Route route, string type)
            : base(id)
        {
            RouteProductMapType rType;

            if (!Enum.TryParse(type, true, out rType))
            {
                throw new WrongRouteProductMapTypeException("Wrong route product map type.", "RouteProductMapType");
            }

            Type = rType;
            Route = route;
        }
 public RealProductMap(ProductMapId id)
     : base(id)
 {
 }
 public ShopProductMap(ProductMapId id, Domain.Shop.Shop shop, ShopProductMapType type)
     : base(id)
 {
     Type = type;
     Shop = shop;
 }
 public RouteProductMap(ProductMapId id, Domain.Route.Route route, RouteProductMapType type)
     : base(id)
 {
     Type = type;
     Route = route;
 }
 public void OnTestInitialize()
 {
     _id = Guid.NewGuid();
     _productMapId = new ProductMapId(_id);
 }