Example #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());
            }
            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());
            }