예제 #1
0
            public void GetAllDictionaryItemsWithUnknownKeyExpectNull()
            {
                // Arrange
                const string CULTURE_CODE = "en";
                var target = new DictionaryDao();

                // Act
                var result = target.GetAllItemsWithCode(DictionaryItemKey.Unknown, CULTURE_CODE);

                // Assert
                Assert.IsNull(result, "The value obtained is not null");
            }
예제 #2
0
            public void GetAllDictionaryItemsWithValidCodeExpectSuccess()
            {
                const string CULTURE_CODE = "en";

                // Act
                var target = new DictionaryDao();
                List<DictionaryItem> dictionaryItems =
                    target.GetAllItemsWithCode(DictionaryItemKey.BookingCancellationRequestAction, CULTURE_CODE);

                //Assert
                Assert.NotNull(dictionaryItems);
                Assert.AreEqual(4, dictionaryItems.Count);
            }