Beispiel #1
0
        private void ContaintMethodReturnsTrue()
        {
            //Arrange
            var dbMock        = new Mock <TelegramBotContext>();
            var changeCountry = new ChangeCountryNameCommand(dbMock.Object);
            var message       = new Message()
            {
                Text = "/changeCountry"
            };

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

            //Assert
            Assert.True(result);
        }
Beispiel #2
0
        private void ContaintMethodReturnsFalse()
        {
            //Arrange
            var dbMock        = new Mock <TelegramBotContext>();
            var changeCountry = new ChangeCountryNameCommand(dbMock.Object);
            var message       = new Message()
            {
                Text = Guid.NewGuid().ToString()
            };

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

            //Assert
            Assert.False(result);
        }