Esempio n. 1
0
        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");
        }
Esempio n. 2
0
        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");
        }
Esempio n. 3
0
        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");
        }