예제 #1
0
        public async void When_destroy_with_ignoring_errors_doesnt_throw()
        {
            await GetEventStore();

            var sut = new MsSqlPollerStateRepository(ConnectionString);

            var x = Record.Exception(() => sut.Destroy(true));

            Assert.Null(x);
        }
예제 #2
0
        public async void When_initialize_and_destroy_doesnt_throw()
        {
            await GetEventStore();

            var sut = new MsSqlPollerStateRepository(ConnectionString);

            var x = Record.Exception(() =>
            {
                sut.Initialize();
                sut.Destroy();
            });

            Assert.Null(x);
        }