Esempio n. 1
0
        public void SaveActivityDiaryDetails_Error()
        {
            ActivityDiaryDetailsModel request = new ActivityDiaryDetailsModel()
            {
                JobseekerId = 123456789, ActivityId = 987654321, ActivityPlacementSequenceNo = 1
            };

            var response = new AASaveResponse
            {
            };

            mockAttendanceWcf.Setup(m => m.SaveAttendances(It.IsAny <AASaveRequest>())).Throws(new FaultException());

            var result = SystemUnderTest().SaveActivityDiaryDetails(request);

            Assert.IsNotNull(result);
        }
Esempio n. 2
0
        public void GetActivityDiaryDetails_Error()
        {
            ActivityDiaryDetailsModel request = new ActivityDiaryDetailsModel()
            {
                JobSeekerId = 12345678, ActivityId = 987654321, ActivityPlacementSequenceNo = 1, FromDate = DateTime.Now
            };

            var response = new AADetailsResponse
            {
            };

            mockAttendanceWcf.Setup(m => m.GetActivityAttendanceList(It.IsAny <AADetailsRequest>())).Throws(new FaultException());

            var result = SystemUnderTest().GetActivityDiaryDetails(request);

            Assert.IsNotNull(result);
        }