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(); }
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(); }
private void Arrange_usefulnessentry() { var entry = new UsefulnessEntry(_testEntity, 1, _ipAddress, _creator); _usefulnessService.Create(entry); }
public UsefulnessEntityProxy(UsefulnessEntry usefulnessEntry) { Id = usefulnessEntry.EntityId; Type = usefulnessEntry.EntityType; }