public void ShouldBeAbleToMapEntityToDto() { With.Component.IEntity source = new With.Component.Entity(new With.Component.Identity("TEST"), null, null, null); SignalR.Common.Dto.Entity actual = source.AsDto(); Assert.AreEqual(actual.Identity.Value, "TEST"); }
public void ShouldBeAbleToMapEntityToComponent() { SignalR.Common.Dto.Entity source = new SignalR.Common.Dto.Entity { Identity = new SignalR.Common.Dto.Identity { Value = "TEST" } }; With.Component.IEntity actual = source.AsComponent(); Assert.AreEqual(actual.Identity.Value, "TEST"); }
public void ShouldBeAbleToMapEntityToComponent() { SignalR.Common.Dto.Entity source = new SignalR.Common.Dto.Entity { Identity = new SignalR.Common.Dto.Identity { Value = "TEST" } }; With.Component.IEntity actual = source.AsComponent(); Assert.AreEqual(actual.Identity.Value, "TEST"); }