private void initDelegates()
        {
            vMobPhone = new SimCorpMobilePhone();
            vMobPhone.SetFormatMode(0);
            vMobPhone.SetMessageIsAddedDelegat(OnListViewMessageAdded);
            vMobPhone.SetMessageIsRemoveDelegat(OnListViewMessageRemoved);

            vSmsGenerator = new SMSGenerator(2000, vMobPhone);

            vKickOffSmsGenerator = new EventHandler(OnInitSmsGenerator);
            vKickOffSmsGenerator.Invoke(this, null);
        }
Ejemplo n.º 2
0
        public void MessageAddedTest()
        {
            //Arrange
            MessageStorage messageStorage = new MessageStorage("+380971994730");
            SMSGenerator   sMSGenerator   = new SMSGenerator();

            //Act
            sMSGenerator.GenerateMessage(messageStorage);
            int            expectedResult = 1;
            List <Message> messages       = messageStorage.GetAllMessages();
            int            actual         = messages.Count;

            //Assert
            Assert.AreEqual(expectedResult, actual);
        }
 public BillingSystemServices()
 {
     CallsGen = new CallsGenerator();
     SMSsGen  = new SMSGenerator();
 }