Exemplo n.º 1
0
        private void ContaintMethodReturnsTrue()
        {
            //Arrange
            var dbMock      = new Mock <TelegramBotContext>();
            var changeEmail = new ChangeEmailCommand(dbMock.Object);
            var message     = new Message()
            {
                Text = "/changeEmail"
            };

            //Act
            var result = changeEmail.IsContains(message);

            //Assert
            Assert.True(result);
        }
Exemplo n.º 2
0
        private void ContaintMethodReturnsFalse()
        {
            //Arrange
            var dbMock      = new Mock <TelegramBotContext>();
            var changeEmail = new ChangeEmailCommand(dbMock.Object);
            var message     = new Message()
            {
                Text = Guid.NewGuid().ToString()
            };

            //Act
            var result = changeEmail.IsContains(message);

            //Assert
            Assert.False(result);
        }