public void Create_New_Family_Item_Tests() { // Create a family object for the Wakefield family Family wakefieldFamily = new Family { Id = "Wakefield.7", LastName = "Wakefield", Parents = new Parent[] { new Parent { FamilyName = "Wakefield", FirstName = "Robin" }, new Parent { FamilyName = "Miller", FirstName = "Ben" } }, Children = new Child[] { new Child { FamilyName = "Merriam", FirstName = "Jesse", Gender = "female", Grade = 8, Pets = new Pet[] { new Pet { GivenName = "Goofy" }, new Pet { GivenName = "Shadow" } } }, new Child { FamilyName = "Miller", FirstName = "Lisa", Gender = "female", Grade = 1 } }, Address = new Address { State = "NY", County = "Manhattan", City = "NY" }, IsRegsitered = true }; var db = _dbService.GetDatabase(); mockDatabaseService.Setup(m => m.GetDatabase()).Returns(db); var container = _dbService.GetContainer("Family", "/LastName"); mockDatabaseService.Setup(m => m.GetContainer("Family", "/LastName")).Returns(container); var familyNew = _famService.AddFamily(wakefieldFamily); Assert.NotNull(familyNew); }