public void OneTimeSetUp()
 {
     try
     {
         MyServiceException = new MyServiceException(
             "My message",
             new BusinessEntity {
             Name = "name", Number = 5
         },
             unencrypted: new Tags {
             { "t1", "v1" }
         }).ThrowAndCatch();
     }
     catch (Exception e)
     {
         Console.Write(e);
     }
 }
Exemple #2
0
        public void SetUp()
        {
            try
            {
                SerializationManager.InitializeForTesting();

                MyServiceException = new MyServiceException(
                    "My message",
                    new BusinessEntity {
                    Name = "name", Number = 5
                },
                    unencrypted: new Tags {
                    { "t1", "v1" }
                }).ThrowAndCatch();
            }
            catch (Exception e)
            {
                Console.Write(e);
            }
        }