Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public void Equals_EqualObjects_ShouldReturnTrue()
        {
            // Act
            var newEntity = new EntityBaseFake(this._entityGuid);
            var isEqual   = this._entity.Equals(newEntity);

            // Assert
            isEqual.Should().BeTrue();
        }
Exemplo n.º 3
0
 public EntityBaseTest()
 {
     this._entityGuid = Guid.NewGuid();
     this._entity     = new EntityBaseFake(this._entityGuid);
 }