Inheritance: IMutablePersistable
コード例 #1
0
ファイル: UsefulnessTest.cs プロジェクト: teamaton/speak-lib
        private void Arrange_entity_with_one_positive_vote_by_anonymous()
        {
            Arrange_persisted_entity();

            var usefulnessEntry = new UsefulnessEntry(_testEntity, 1, "127.0.0.1", new UsefulnessCreatorAnonymous(_ipAddress, new TimeSpan(0, 0, 3)));
            _usefulnessService.Create(usefulnessEntry);

            Reload_entity();
        }
コード例 #2
0
ファイル: UsefulnessTest.cs プロジェクト: teamaton/speak-lib
        private void Arrange_entity_with_one_vote(int value)
        {
            Arrange_persisted_entity();

            var usefulnessEntry = new UsefulnessEntry(_testEntity, value, _ipAddress, new UsefulnessCreatorAnonymous(_ipAddress, new TimeSpan(0,0,3)));
            _usefulnessService.Create(usefulnessEntry);

            Reload_entity();
        }
コード例 #3
0
 private void Arrange_usefulnessentry()
 {
     var entry = new UsefulnessEntry(_testEntity, 1, _ipAddress, _creator);
     _usefulnessService.Create(entry);
 }
コード例 #4
0
 public UsefulnessEntityProxy(UsefulnessEntry usefulnessEntry)
 {
     Id = usefulnessEntry.EntityId;
     Type = usefulnessEntry.EntityType;
 }