Example #1
0
        public void ShouldBeAbleToMapIdentityToDto()
        {
            With.Component.IIdentity    source = new With.Component.Identity("TEST");
            SignalR.Common.Dto.Identity actual = source.AsDto();

            Assert.AreEqual(actual.Value, "TEST");
        }
        public void ShouldBeAbleToMapIdentityToComponent()
        {
            SignalR.Common.Dto.Identity source = new SignalR.Common.Dto.Identity { Value = "TEST" };
            With.Component.IIdentity actual = source.AsComponent();

            Assert.AreEqual(actual.Value, "TEST");
        }
Example #3
0
        public void ShouldBeAbleToMapIdentityToComponent()
        {
            SignalR.Common.Dto.Identity source = new SignalR.Common.Dto.Identity {
                Value = "TEST"
            };
            With.Component.IIdentity actual = source.AsComponent();

            Assert.AreEqual(actual.Value, "TEST");
        }