示例#1
0
 private void SetUpTestData()
 {
     _mockUser = RandomDataGenerator.GenerateUser();
 }
示例#2
0
        public void Insert()
        {
            SetUpTestData();
            IBaseRepository<User> repo = InitializeRepo();

            _mockUser = repo.Add(_mockUser);

            _mockUser.Should().NotBeNull();
            _mockUser.Id.Should().NotBe(0);
            _mockUser.PublishCode.Should().BeNull();
            _userId = (long)_mockUser.Id;
        }
示例#3
0
        private void SetUpTestData()
        {
            _mockUser = new User()
            {
                IsVip = false,
                PublishCode = "some test publish code",
                Username = "******"
            };

            _mockUser = DataManager.GetDataManager().CreateInstance<User>().Add(_mockUser);
            _mockHaiku = RandomDataGenerator.GenerateHaiku();
        }