public void EntityBaseFake_NullGuid_ShouldConstructObjectWithNewId() { // Arrange / Act var entity = new EntityBaseFake(null); // Act entity.Id.Should().NotBe(this._entityGuid); entity.CreationTime.Should().BeCloseTo(DateTime.Now); }
public void Equals_EqualObjects_ShouldReturnTrue() { // Act var newEntity = new EntityBaseFake(this._entityGuid); var isEqual = this._entity.Equals(newEntity); // Assert isEqual.Should().BeTrue(); }
public EntityBaseTest() { this._entityGuid = Guid.NewGuid(); this._entity = new EntityBaseFake(this._entityGuid); }