public void GivenNewEmployee_WhenAdded_ShouldSyncWithDB() { EmployeeModel employee = new EmployeeModel() { EmployeeName = "Mohan", PhoneNumber = "9568214587", Address = "Annanagar", Department = "Sales", Gender = 'M', BasicPay = 50000, StartDate = Convert.ToDateTime("8-5-2019"), DepartmentId = 899 }; bool result = repo.AddEmployeeToDtabase(employee); List <EmployeeModel> employeeAdded = repo.RetrieveDataByName("Mark"); Assert.AreEqual(employeeAdded.Count(), 1); }