예제 #1
0
            public void CanShortCircuitAccessToUserNameHeader()
            {
                var command = new FakeCommand();
                var headers = new HeaderCollection(new[] { new Header(Header.UserName, "*****@*****.**", checkReservedNames: false) });

                using (new CommandContext(GuidStrategy.NewGuid(), headers, CommandEnvelope.Empty))
                    Assert.Equal("*****@*****.**", command.GetUserName());
            }
예제 #2
0
            public void CanShortCircuitAccessToUserNameHeader()
            {
                var command = new FakeCommand();
                var headers = new HeaderCollection(new[] { new Header(Header.UserName, "*****@*****.**", checkReservedNames: false) });

                using (new CommandContext(GuidStrategy.NewGuid(), headers, CommandEnvelope.Empty))
                    Assert.Equal("*****@*****.**", command.GetUserName());
            }