public void SetUp() { dataLayer = new DataLayer(); businessLayer = new BusinessLayer(dataLayer); mockedDataLayer = new Mock<IDataLayer>(); businessLayerWithMock = new BusinessLayer(mockedDataLayer.Object); }
static void Main(string[] args) { var dataLayer = new DataLayer(); var business = new BusinessLayer(dataLayer); var employees = Task.Run(() => business.GetEmployees()); employees.Wait(); foreach (var employee in employees.Result) { Console.WriteLine(string.Format("Employee Name: {0}, PLOT Status: {1}", employee.Person.Name, employee.Person.Description) ); } }