Beispiel #1
0
        public static async Task GetView_GivenValidName_ReturnsNone()
        {
            var provider   = new EmptyDatabaseViewProvider();
            var view       = provider.GetView("view_name");
            var viewIsNone = await view.IsNone.ConfigureAwait(false);

            Assert.That(viewIsNone, Is.True);
        }
Beispiel #2
0
        public static void GetView_GivenNullName_ThrowsArgumentNullException()
        {
            var provider = new EmptyDatabaseViewProvider();

            Assert.That(() => provider.GetView(null), Throws.ArgumentNullException);
        }