internal LtrObject(IIdentityObject obj) { Guard.NotNull(obj, nameof(obj)); this.ObjectId = obj.Id; this.LogObjectClass = obj.GetType().FullName; this.Properties = new List <LtrObjectProperties>(); }
public void ShouldCreateLtrObject(IIdentityObject obj) { // Arrange & Act var sut = new LtrObject(obj); // Assert Assert.Equal(obj.Id, sut.ObjectId); Assert.Equal(obj.GetType().FullName, sut.LogObjectClass); }