コード例 #1
0
        public void CanISetAllPropertiesFromLogModelModel()
        {
            var _sut = new ConfigurationModel()
            {
                RegistrationDate = new DateTime(2017, 1, 1),
                Configuration_Id = 1,
                NumberOfMinutesToCheckRequests    = 1,
                NumberOfMinutesToWaitExceedLimite = 1,
                NumberOfRequestToExceedLimite     = 1,
                TimeToExpireTheToken = 1,
            };

            Assert.AreEqual(6, _sut.GetType().GetProperties().Count());
            Assert.AreEqual(1, _sut.Configuration_Id);
            Assert.AreEqual(1, _sut.NumberOfMinutesToCheckRequests);
            Assert.AreEqual(1, _sut.NumberOfMinutesToWaitExceedLimite);
            Assert.AreEqual(1, _sut.NumberOfRequestToExceedLimite);
            Assert.AreEqual(1, _sut.TimeToExpireTheToken);
        }