public bool CheckExistingTranslator(string emailId, string culture) { try { IUnitOfWork ouw = new UnitOfWork(); IStaffRepository rep = new StaffRepository(ouw); IStaffService service = new StaffService(rep); var data = rep.GetStaffList().Find(f => f.StaffEmailID.Trim() == emailId.Trim()); //service.GetStaffList(new BaseViewModel() { CurrentCulture = culture }).Find(f => f.StaffEmailID.Trim() == emailId.Trim()); if (data == null) { return(false); } } catch (Exception ex) { throw new Exception(ex.Message); } return(true); }
public void GetStaffList_WhenCalled_ReturnsStaffList() { var actual = _sut.GetStaffList(); actual.Should().Equals(_mockStaffListVM); }