Пример #1
0
        public void Remove_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
            };

            SqlStorage.AddUser(user);

            Assert.AreEqual(SqlStorage.Count, 1);

            SqlStorage.RemoveUser(guid);

            Assert.AreEqual(SqlStorage.Count, 0);

            SqlStorage.Clear();
        }