コード例 #1
0
ファイル: KillServiceTest.cs プロジェクト: reiroldan/dotnetkb
        public void Test2()
        {
            var system = new SolarSystemDto { Id = 1, Name = "SystemName" };
            var shipItem = new ItemDto { Id = 1, Name = "VictimShip" };

            Save(system);
            Save(shipItem);

            var kill = new ParsedKillResult {
                Header = new ParsedKillHeader {
                    AllianceName = "VictimAlliance",
                    CorporationName = "VictimCorp",
                    DamageTaken = 100,
                    FactionName = "FactionName",
                    ShipName = shipItem.Name,
                    SystemName = system.Name,
                    SystemSecurity = 9000,
                    Timestamp = DateTime.Now,
                    VictimName = "VictimPilot"
                }
            };

            var ks = Resolve<IKillService>();
            ks.CreateKill(kill);

            kill.Header.AllianceName = "SecondAlliance";
            kill.Header.VictimName = "VictimPilot";

            ks.CreateKill(kill);
        }
コード例 #2
0
 public TextKillMailParser()
 {
     Result = new ParsedKillResult();
 }