Exemple #1
0
        private void Should_return_results_if_storage_is_filled()
        {
            var markupPolicyStorage = MarkupPolicyStorageMock.Create();

            markupPolicyStorage.Set(new List <MarkupPolicy>());
            var result = markupPolicyStorage.Get(x => x.Id == 1);

            Assert.NotNull(result);
        }
Exemple #2
0
        private void Should_throw_exception_if_storage_is_not_filled()
        {
            var markupPolicyStorage = MarkupPolicyStorageMock.Create();

            Assert.Throws <Exception>(() => markupPolicyStorage.Get(x => x.Id == 1));
        }