Ejemplo n.º 1
0
        public ContainerServicio()
        {
            _containerRepository  = new ContainerRepository();
            _containerList        = new List <P2PContainer>();
            _containerListByEvent = new List <P2PContainer>();

            P2PContainer container1 = _containerRepository.AddContainer(1, 1, "Event", "{test:1}", true, false, 2, 2, false);
            P2PContainer container2 = _containerRepository.AddContainer(2, 3, "Donation", "{test:2}", false, true, 2, 2, false);
            P2PContainer container3 = _containerRepository.AddContainer(3, 8, "Event", "{test:3}", true, false, 2, 2, false);
            P2PContainer container4 = _containerRepository.AddContainer(4, 2, "Donation", "{test:4}", true, true, 2, 2, false);
            P2PContainer container5 = _containerRepository.AddContainer(5, 8, "Event", "{test:5}", false, false, 2, 2, false);

            _containerList.Add(container1);
            _containerList.Add(container2);
            _containerList.Add(container3);
            _containerList.Add(container4);
            _containerList.Add(container5);
            _containerListByEvent.Add(container3);
            _containerListByEvent.Add(container5);
        }