public Provider() { Address = new Address(); Contact = new Contact(); ApprovingStudents = new List<Student>(); UserRoles = new List<UserRole>(); ServiceOfferings = new List<ServiceOffering>(); }
public Program() { Schools = new List<School>(); ServiceOfferings = new List<ServiceOffering>(); ContactInfo = new Contact(); }
public void GivenProgram_WhenExecuteDataSelector_ThenContactDataPropertyMatches() { Contact expectedState = new Contact { Name = "Bob", Phone = "123-456-7890", Email = "*****@*****.**" }; Program program = new Program { ContactInfo = expectedState }; ProgramClientDataTable target = new ProgramClientDataTable(MockRequest); dynamic actual = target.DataSelector.Compile().Invoke(program); Assert.AreEqual(expectedState.Name, actual.Contact.Name); Assert.AreEqual(expectedState.Phone, actual.Contact.Phone); Assert.AreEqual(expectedState.Email, actual.Contact.Email); }