Exemplo n.º 1
0
        public void Parse1()
        {
            var parser = new TextKillMailParser();

            parser.Parse(Kill);
            parser.Result.Dump();
        }
Exemplo n.º 2
0
        public void FullTest()
        {
            var parser = new TextKillMailParser();

            parser.Parse(Kill);
            var kill = parser.Result;

            Save(new SolarSystemDto {
                Id = 1, Name = kill.Header.SystemName
            });

            var itemNames = kill.GetUsedItemNames().ToList();

            for (var i = 0; i < itemNames.Count; i++)
            {
                Save(new ItemDto {
                    Id = i + 1, Name = itemNames[i]
                });
            }

            var ks = Resolve <IKillService>();

            ks.CreateKill(kill);
        }