Esempio n. 1
0
        public static void Register___Should_not_throw___When_called_multiple_times()
        {
            // Arrange, Act
            var ex1 = Record.Exception(() => BsonConfigurationManager.Configure <AccountingTimeBsonConfiguration>());
            var ex2 = Record.Exception(() => BsonConfigurationManager.Configure <AccountingTimeBsonConfiguration>());

            // Assert
            ex1.Should().BeNull();
            ex2.Should().BeNull();
        }
Esempio n. 2
0
 public AccountingTimeBsonConfigurationTest()
 {
     BsonConfigurationManager.Configure <AccountingTimeBsonConfiguration>();
 }