Ejemplo n.º 1
0
        public void TestOnRequestDownloadDynamo()
        {
            //Arrange
            //This will subscribe our local method to the RequestDownloadDynamo event
            CurrentDynamoModel.RequestDownloadDynamo += CurrentDynamoModel_RequestDownloadDynamo;

            //Act
            CurrentDynamoModel.OnRequestDownloadDynamo();

            //Assert
            CurrentDynamoModel.RequestDownloadDynamo -= CurrentDynamoModel_RequestDownloadDynamo;
            //This will validate that the local handler was executed and set the flag in true
            Assert.IsTrue(requestDownloadDynamo);
        }