public void TestGetMock()
        {
            var dalInstance = new MockObjects.MockHelper().GetStatusTypeDalGoodMock();
            var classUnderTest = GetClassUnderTest(dalInstance);
            var actualResult = classUnderTest.Get(1, true);

            Assert.IsNotNull(actualResult);
        }
        public void TestGet()
        {
            var dalInstance = new MockObjects.MockHelper().GetBorrowedItemDal();
            var classUnderTest = GetClassUnderTest(dalInstance);
            var actualResult = classUnderTest.Get(1, true);

            Assert.IsNotNull(actualResult);
        }
        public void TestGetAllMock()
        {
            var dalInstance = new MockObjects.MockHelper().GetStatusTypeDalGoodMock();
            var classUnderTest = GetClassUnderTest(dalInstance);
            var actualResult = classUnderTest.GetAll(true);

            Assert.IsNotNull(actualResult);
            Assert.IsTrue(actualResult.IsValid);
            Assert.IsTrue(actualResult.EntityList.Count() > 0);
        }
Пример #4
0
        public void TestAdd()
        {
            var testDomainEntity = new MockObjects.MockHelper().GetStatusTypeEntity();
            var classUnderTest = GetClassUnderTest();
            var actualResult = classUnderTest.Add(testDomainEntity as Domain.StatusType);

            Assert.IsNotNull(actualResult);
            Assert.Greater(actualResult.Id, 0);
            Assert.IsNotNull(actualResult.DisplayImage);
            Assert.Greater(actualResult.DisplayImage.Id, 0);
        }