Exemple #1
0
        public void CanAttachHeader()
        {
            // arrange
            var foo = new { What = "whatever" };

            // act
            fakeBus.AttachHeader(foo, "custom-header", "ftlolz!!1");

            // assert
            fakeBus.GetAttachedHeaders(foo).ShouldContainKeyAndValue("custom-header", "ftlolz!!1");
        }