public void Given_task_exists_but_different_clientid_specified_when_GetByIdAndCompanyId_then_throw_Task_not_found_exception() { var target = new FurtherControlMeasureTasksRepository(ObjectFactory.GetInstance<IBusinessSafeSessionManager>()); Assert.Throws<TaskNotFoundException>(() => target.GetByIdAndCompanyId(11, 123213)); }
public void Given_task_when_GetByIdAndCompanyId_then_return_task() { var target = new FurtherControlMeasureTasksRepository(ObjectFactory.GetInstance<IBusinessSafeSessionManager>()); var result = target.GetByIdAndCompanyId(11, 55881); Assert.AreEqual(11,result.Id); }