public void GetContactTypeLookup_ShouldNot_BeNull() { INGManager ngManager = GetNGManager(); GetContactTypeLookupRequest request = new GetContactTypeLookupRequest() { GroupType = 1, ContractNumber = "InHealth001", Token = "1234", Version = 1.0, UserId = "TestUser", }; GetContactTypeLookupResponse response = ngManager.GetContactTypeLookup(request); Assert.IsNotNull(response); }
public GetContactTypeLookupResponse GetContactTypeLookup(GetContactTypeLookupRequest request) { var res = new GetContactTypeLookupResponse(); if (request.GroupType == 0) { var fakeLookups = new List <ContactTypeLookUp>() { new ContactTypeLookUp { Id = "56ea0c2c64e91cf53bbfca5f", Name = "Doctor", Role = "Doctor(M.D)", CreatedOn = DateTime.UtcNow, Group = (int)ContactLookUpGroupType.ContactType, }, new ContactTypeLookUp { Id = "56f310910894eccd367b980e", Name = "Addiction Medicine", Role = "Addiction Medicine", CreatedOn = DateTime.UtcNow, Group = (int)ContactLookUpGroupType.CareTeam, } }; res.ContactTypeLookUps = fakeLookups; } else { var fakeLookups = new List <ContactTypeLookUp>() { new ContactTypeLookUp { Id = "56ea0c2c64e91cf53bbfca5f", Name = "Doctor", Role = "Doctor(M.D)", CreatedOn = DateTime.UtcNow, Group = request.GroupType, } }; res.ContactTypeLookUps = fakeLookups; } return(res); }