Example #1
0
        public void TestJoin()
        {
            bool   NoReasonThisShouldBeTrue = true;
            bool   JoinCompleted            = false;
            bool   TestThrewException       = false;
            string eventName = "";

            try
            {
                NoReasonThisShouldBeTrue = ecp.ContainsEntry(testEvent.EventID, testCharacter.Name);
                ecp.JoinEvent(testEvent.EventID, testCharacter.Name, "AFK", new DateTime(2020, 12, 24));
                JoinCompleted = ecp.ContainsEntry(testEvent.EventID, testCharacter.Name);
                List <Event> events = (List <Event>)ep.GetGuildEventsByCharacterName(testEvent.GuildID, testCharacter.Name);
                eventName = (events[0]).Name;
            }catch (Exception)
            {
                TestThrewException = true;
            }finally
            {
                //Cleanup
            }

            Assert.AreEqual("Test Raid", eventName);
            Assert.IsFalse(NoReasonThisShouldBeTrue);
            Assert.IsTrue(JoinCompleted);
            Assert.IsFalse(TestThrewException);
        }
Example #2
0
 public IEnumerable <Event> GetByCharacterName(string guildID, string characterName) => eventProcessor.GetGuildEventsByCharacterName(guildID, characterName);