Example #1
0
        public void Add_User_Storage_Sql_Tests_Method()
        {
            SqlStorage.Clear();
            DateTimeOffset dateTimeOffset = DateTimeOffset.Now;
            Guid           guid           = Guid.NewGuid();
            UserItem       user           = new UserItem()
            {
                ChatId             = 12345678,
                DateOfRegistration = dateTimeOffset,
                FirstName          = "Null",
                Id      = guid,
                Message = "Null",
                Status  = StatusEnum.Null
            };

            Assert.AreEqual(SqlStorage.Count, 0);

            SqlStorage.AddUser(user);

            Assert.AreEqual(SqlStorage.Count, 1);
            SqlStorage.Clear();
        }