public void AddNewRangeTest() { var roomtype = new List <RoomType> { new RoomType { RoomTypeName = "Demo Room Type" }, new RoomType { RoomTypeName = "Demo Room Type 2" }, }; roomtype.ForEach(s => s.Created(Guid.NewGuid())); _repository.AddRange(roomtype); Assert.True(_context.SaveChangesAsync().Result); }